Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 0b5c72d

Browse files
committed
On some HPUX versions/hardware, it seems we need to include libgcc.a in
the regression test shared libraries.
1 parent 83fea34 commit 0b5c72d

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/makefiles/Makefile.hpux

+10-2
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,18 @@ endif
5353
# Rule for building shared libs (currently used only for regression test
5454
# shlib ... should go away, since this is not really enough knowledge)
5555
%$(DLSUFFIX): %.o
56-
ifeq ($(with_gnu_ld), yes)
57-
$(CC) $(LDFLAGS) -shared -o $@ $<
56+
ifeq ($(GCC), yes)
57+
ifeq ($(with_gnu_ld), yes)
58+
$(CC) $(LDFLAGS) -shared -o $@ $< `$(CC) $(LDFLAGS) -print-libgcc-file-name`
59+
else
60+
$(LD) -b -o $@ $< `$(CC) $(LDFLAGS) -print-libgcc-file-name`
61+
endif
5862
else
63+
ifeq ($(with_gnu_ld), yes)
64+
$(CC) $(LDFLAGS) -shared -o $@ $<
65+
else
5966
$(LD) -b -o $@ $<
67+
endif
6068
endif
6169

6270
sqlmansect = 5

0 commit comments

Comments
 (0)