|
6 | 6 | # Copyright (c) 1998, Regents of the University of California |
7 | 7 | # |
8 | 8 | # IDENTIFICATION |
9 | | -# $PostgreSQL: pgsql/src/Makefile.shlib,v 1.92 2005/07/04 04:17:00 momjian Exp $ |
| 9 | +# $PostgreSQL: pgsql/src/Makefile.shlib,v 1.93 2005/07/12 23:06:48 tgl Exp $ |
10 | 10 | # |
11 | 11 | #------------------------------------------------------------------------- |
12 | 12 |
|
@@ -163,6 +163,13 @@ ifeq ($(PORTNAME), hpux) |
163 | 163 | else |
164 | 164 | LINK.shared= $(LD) +h $(soname) -b |
165 | 165 | endif |
| 166 | + # On HPUX platforms, gcc is usually configured to search for libraries |
| 167 | + # in /usr/local/lib, but ld won't do so. Add an explicit -L switch so |
| 168 | + # ld can find the same libraries gcc does. Make sure it goes after any |
| 169 | + # -L switches provided explicitly. |
| 170 | + ifeq ($(GCC), yes) |
| 171 | + SHLIB_LINK += -L/usr/local/lib |
| 172 | + endif |
166 | 173 | endif |
167 | 174 | endif |
168 | 175 |
|
|