diff options
author | Tom Lane | 2005-07-12 23:06:48 +0000 |
---|---|---|
committer | Tom Lane | 2005-07-12 23:06:48 +0000 |
commit | b4363b7733eb18e9178b6c3f390fa90543c19b20 (patch) | |
tree | a608a07f3c60d0afa5a8da871903d1057f61623c | |
parent | 2d481b31af5ec92a8b940cf8198c5197289aa61e (diff) |
Hack around the discrepancy between default library search paths for
gcc and for HP's ld on HPUX. There may be better ways to do this,
but this seems to work for me...
-rw-r--r-- | src/Makefile.shlib | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/Makefile.shlib b/src/Makefile.shlib index df543407c8b..7e85e16329e 100644 --- a/src/Makefile.shlib +++ b/src/Makefile.shlib @@ -6,7 +6,7 @@ # Copyright (c) 1998, Regents of the University of California # # IDENTIFICATION -# $PostgreSQL: pgsql/src/Makefile.shlib,v 1.92 2005/07/04 04:17:00 momjian Exp $ +# $PostgreSQL: pgsql/src/Makefile.shlib,v 1.93 2005/07/12 23:06:48 tgl Exp $ # #------------------------------------------------------------------------- @@ -163,6 +163,13 @@ ifeq ($(PORTNAME), hpux) else LINK.shared = $(LD) +h $(soname) -b endif + # On HPUX platforms, gcc is usually configured to search for libraries + # in /usr/local/lib, but ld won't do so. Add an explicit -L switch so + # ld can find the same libraries gcc does. Make sure it goes after any + # -L switches provided explicitly. + ifeq ($(GCC), yes) + SHLIB_LINK += -L/usr/local/lib + endif endif endif |