aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2001-09-06 03:15:43 +0000
committerBruce Momjian <bruce@momjian.us>2001-09-06 03:15:43 +0000
commit56b102a96e38f9efb53137ea322209b7a57a4bfe (patch)
treee72566db1c0dd24a0b13cc366628e440d953e868
parente30b283f30c39648abc17e14b709ad93f53aac95 (diff)
downloadpostgresql-56b102a96e38f9efb53137ea322209b7a57a4bfe.tar.gz
postgresql-56b102a96e38f9efb53137ea322209b7a57a4bfe.zip
This fixes the regression test .so builds on sysv5 systems:
I believe this will fix peter_e's problen with gcc. Larry Rosenman
-rw-r--r--src/makefiles/Makefile.unixware7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/makefiles/Makefile.unixware b/src/makefiles/Makefile.unixware
index 0a437c9b0c3..f394e619138 100644
--- a/src/makefiles/Makefile.unixware
+++ b/src/makefiles/Makefile.unixware
@@ -16,8 +16,13 @@ CXXFLAGS_SL = -fpic
else
CXXFLAGS_SL = -K PIC
endif
+ifeq ($(GCC), yes)
+SO_FLAGS = -shared
+else
+SO_FLAGS = -G
+endif
%.so: %.o
- $(LD) -G -Bdynamic -o $@ $<
+ $(CC) $(SO_FLAGS) -Bdynamic -o $@ $<
sqlmansect = 5sql