This fixes the regression test .so builds on sysv5 systems:

I believe this will fix peter_e's problen with gcc.

Larry Rosenman
This commit is contained in:
Bruce Momjian 2001-09-06 03:15:43 +00:00
parent e30b283f30
commit 56b102a96e
1 changed files with 6 additions and 1 deletions

View 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