aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2003-10-20 01:34:33 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2003-10-20 01:34:33 +0000
commit41e6e3671957d356b06ad930cfd9231acc9cfe16 (patch)
tree6bb9c17db407e20b1a1deeb5f6b264efac7cf3e1 /src
parent6f169057de1ee813ef941a40937711b998f731a8 (diff)
downloadpostgresql-41e6e3671957d356b06ad930cfd9231acc9cfe16.tar.gz
postgresql-41e6e3671957d356b06ad930cfd9231acc9cfe16.zip
When building shared libraries on HPUX with gcc, forcibly include -lgcc
to ensure any needed compiler support routines are included. This is arguably appropriate on *every* gcc platform, but for the moment I'll take the conservative approach of only doing it on a platform where it's provably useful. Per complaint from Heiko Lehmann, 13-Feb-03, as well as personal experience --- contrib/pgstattuple has never worked for me, but it does now.
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.shlib5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Makefile.shlib b/src/Makefile.shlib
index b2a0343dda3..4dd2ea6b555 100644
--- a/src/Makefile.shlib
+++ b/src/Makefile.shlib
@@ -6,7 +6,7 @@
# Copyright (c) 1998, Regents of the University of California
#
# IDENTIFICATION
-# $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.71 2003/09/27 19:35:32 tgl Exp $
+# $Header: /cvsroot/pgsql/src/Makefile.shlib,v 1.72 2003/10/20 01:34:33 tgl Exp $
#
#-------------------------------------------------------------------------
@@ -128,6 +128,9 @@ endif
ifeq ($(PORTNAME), hpux)
shlib := lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION)
LINK.shared = $(LD) +h $(soname) -b +b $(libdir)
+ ifeq ($(GCC), yes)
+ SHLIB_LINK += `$(CC) -print-libgcc-file-name`
+ endif
endif
ifeq ($(PORTNAME), irix5)