summaryrefslogtreecommitdiff
path: root/src/makefiles/Makefile.unixware
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2000-11-04 16:35:55 +0000
committerPeter Eisentraut <peter_e@gmx.net>2000-11-04 16:35:55 +0000
commitc7a794998a4a291e2a234c860170ec76bb1dd176 (patch)
tree648394a88a4c4f55c7c87495dc90d44db4f511f9 /src/makefiles/Makefile.unixware
parent1fdf2edc9d9ef5b1eae5b840fa0cb4287be0fa0d (diff)
downloadpostgresql-c7a794998a4a291e2a234c860170ec76bb1dd176.tar.gz
Separate CFLAGS_SL and CXXFLAGS_SL, to allow building with C and C++
compilers from different providers. (Especially important since the C++ compiler that goes with your favourite C compiler might not work.)
Diffstat (limited to 'src/makefiles/Makefile.unixware')
-rw-r--r--src/makefiles/Makefile.unixware5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/makefiles/Makefile.unixware b/src/makefiles/Makefile.unixware
index 709e2b5c6f..e78621d975 100644
--- a/src/makefiles/Makefile.unixware
+++ b/src/makefiles/Makefile.unixware
@@ -7,6 +7,11 @@ CFLAGS_SL = -fpic
else
CFLAGS_SL = -K PIC
endif
+ifeq ($(GXX), yes)
+CXXFLAGS_SL = -fpic
+else
+CXXFLAGS_SL = -K PIC
+endif
%.so: %.o
$(LD) -G -Bdynamic -o $@ $<