]> granicus.if.org Git - postgresql/commitdiff
This fixes the regression test .so builds on sysv5 systems:
authorBruce Momjian <bruce@momjian.us>
Thu, 6 Sep 2001 03:15:43 +0000 (03:15 +0000)
committerBruce Momjian <bruce@momjian.us>
Thu, 6 Sep 2001 03:15:43 +0000 (03:15 +0000)
I believe this will fix peter_e's problen with gcc.

Larry Rosenman

src/makefiles/Makefile.unixware

index 0a437c9b0c38378a145740a1bbbe578b6410124d..f394e6191381dbebbb3c29a6302a6ac40729889b 100644 (file)
@@ -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