aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/makefiles/Makefile.hpux12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/makefiles/Makefile.hpux b/src/makefiles/Makefile.hpux
index 4c407105582..f8be012b9fa 100644
--- a/src/makefiles/Makefile.hpux
+++ b/src/makefiles/Makefile.hpux
@@ -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