diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2004-11-20 03:52:00 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2004-11-20 03:52:00 +0000 |
commit | 0b5c72d9ba00c6dceafb6880ece4d2ea02d9a24a (patch) | |
tree | 6ac5063990a860244af8d53e0a0029294bab5e28 | |
parent | 83fea34b5b1f544751a6d923736ef5d0087b1c81 (diff) | |
download | postgresql-0b5c72d9ba00c6dceafb6880ece4d2ea02d9a24a.tar.gz postgresql-0b5c72d9ba00c6dceafb6880ece4d2ea02d9a24a.zip |
On some HPUX versions/hardware, it seems we need to include libgcc.a in
the regression test shared libraries.
-rw-r--r-- | src/makefiles/Makefile.hpux | 12 |
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 |