summaryrefslogtreecommitdiff
path: root/src/makefiles/Makefile.hpux
diff options
context:
space:
mode:
Diffstat (limited to 'src/makefiles/Makefile.hpux')
-rw-r--r--src/makefiles/Makefile.hpux9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/makefiles/Makefile.hpux b/src/makefiles/Makefile.hpux
index f91dfae391c..1917d61b436 100644
--- a/src/makefiles/Makefile.hpux
+++ b/src/makefiles/Makefile.hpux
@@ -22,7 +22,7 @@ endif
ifeq ($(with_gnu_ld), yes)
# XXX what to put here?
else
- LDFLAGS += -Wl,-z
+ LDFLAGS_EX += -Wl,-z
endif
# set up appropriate options for shared library builds
@@ -43,18 +43,17 @@ else
CFLAGS_SL = +Z
endif
-# Rule for building shared libs (currently used only for regression test
-# shlib ... should go away, since this is not really enough knowledge)
+# Rule for building a shared library from a single .o file
%$(DLSUFFIX): %.o
ifeq ($(GCC), yes)
ifeq ($(with_gnu_ld), yes)
- $(CC) $(LDFLAGS) -shared -o $@ $< `$(CC) $(LDFLAGS) -print-libgcc-file-name`
+ $(CC) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_SL) -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 $@ $<
+ $(CC) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_SL) -shared -o $@ $<
else
$(LD) -b -o $@ $<
endif