On some HPUX versions/hardware, it seems we need to include libgcc.a in

the regression test shared libraries.
This commit is contained in:
Tom Lane 2004-11-20 03:52:00 +00:00
parent 83fea34b5b
commit 0b5c72d9ba

View File

@ -53,10 +53,18 @@ endif
# Rule for building shared libs (currently used only for regression test
# shlib ... should go away, since this is not really enough knowledge)
%$(DLSUFFIX): %.o
ifeq ($(with_gnu_ld), yes)
$(CC) $(LDFLAGS) -shared -o $@ $<
ifeq ($(GCC), yes)
ifeq ($(with_gnu_ld), yes)
$(CC) $(LDFLAGS) -shared -o $@ $< `$(CC) $(LDFLAGS) -print-libgcc-file-name`
else
$(LD) -b -o $@ $< `$(CC) $(LDFLAGS) -print-libgcc-file-name`
endif
else
ifeq ($(with_gnu_ld), yes)
$(CC) $(LDFLAGS) -shared -o $@ $<
else
$(LD) -b -o $@ $<
endif
endif
sqlmansect = 5