diff options
Diffstat (limited to 'src/Makefile.shlib')
| -rw-r--r-- | src/Makefile.shlib | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/Makefile.shlib b/src/Makefile.shlib index 8f60f3a196e..2d7cc4a0e1f 100644 --- a/src/Makefile.shlib +++ b/src/Makefile.shlib @@ -6,7 +6,7 @@ # Copyright (c) 1998, Regents of the University of California # # IDENTIFICATION -# $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.30 2000/10/27 23:59:39 petere Exp $ +# $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.31 2000/10/31 19:55:18 petere Exp $ # #------------------------------------------------------------------------- @@ -52,9 +52,9 @@ # Got that? Look at src/interfaces/libpq/Makefile for an example. ifndef cplusplus -COMPILER = $(CC) +COMPILER = $(CC) $(CFLAGS) else -COMPILER = $(CXX) +COMPILER = $(CXX) $(CXXFLAGS) endif @@ -103,6 +103,11 @@ ifeq ($(PORTNAME), aix) SHLIB_LINK += -lc endif +ifeq ($(PORTNAME), darwin) + shlib := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION) + LINK.shared = $(COMPILER) $(CFLAGS_SL) +endif + ifeq ($(PORTNAME), openbsd) shlib := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION) ifdef ELF_SYSTEM |
