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

Lines changed: 10 additions & 2 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy