diff options
| author | Peter Eisentraut | 2000-10-31 19:55:20 +0000 |
|---|---|---|
| committer | Peter Eisentraut | 2000-10-31 19:55:20 +0000 |
| commit | b99ee7f37d41803ac643d525c4e700644ddb6030 (patch) | |
| tree | 8ed656fc59d04e2cdbb55cf5f98a827d2fdf779b /src/Makefile.shlib | |
| parent | dc0f5cb09025bf8c5cc3900bfa4738a83457028f (diff) | |
This is the minimal version of the Darwin support patch from
Bruce Hartzler <bruceh@mail.utexas.edu>. It contains shared library
support, regression test map, and the usual template files. The dynamic
loader is missing, the spin lock code apparently doesn't assemble due to
syntax problems, and semaphores are to be hoped for from Apple.
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 |
