]> granicus.if.org Git - postgresql/commitdiff
Hack around the discrepancy between default library search paths for
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 12 Jul 2005 23:06:48 +0000 (23:06 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 12 Jul 2005 23:06:48 +0000 (23:06 +0000)
gcc and for HP's ld on HPUX.  There may be better ways to do this,
but this seems to work for me...

src/Makefile.shlib

index df543407c8b965d144467d2258f9b946f4401d2f..7e85e16329eb0c8e2a598c4b0277a3925206e311 100644 (file)
@@ -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