diff options
| author | Peter Eisentraut | 2000-10-25 16:13:52 +0000 |
|---|---|---|
| committer | Peter Eisentraut | 2000-10-25 16:13:52 +0000 |
| commit | 53f300d49ea08531d48f710aca0286d283dd473a (patch) | |
| tree | 0c21d1f3082906f88c6c419e73cb97ac804f769d /src/interfaces | |
| parent | c404d91c0bf15442a3dc38644263a05e258c3c52 (diff) | |
Rearrange handling of -L linker options so that they are always before all
the -l options. (This was not the case when using the OpenSSL or Kerberos
options.) Also make sure that shared library links get to see all the -L
options. Get Kerberos 5 support to compile on Redhat 7.0. Add OpenSSL and
-lsocket (if used/found) to libpq link.
Diffstat (limited to 'src/interfaces')
| -rw-r--r-- | src/interfaces/libpq/Makefile | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/interfaces/libpq/Makefile b/src/interfaces/libpq/Makefile index a34b22746e6..7f651fa8854 100644 --- a/src/interfaces/libpq/Makefile +++ b/src/interfaces/libpq/Makefile @@ -4,7 +4,7 @@ # # Copyright (c) 1994, Regents of the University of California # -# $Header: /cvsroot/pgsql/src/interfaces/libpq/Makefile,v 1.45 2000/10/20 21:04:11 petere Exp $ +# $Header: /cvsroot/pgsql/src/interfaces/libpq/Makefile,v 1.46 2000/10/25 16:13:52 petere Exp $ # #------------------------------------------------------------------------- @@ -26,12 +26,11 @@ ifdef MULTIBYTE OBJS+= common.o wchar.o conv.o big5.o mbutils.o endif -# If crypt is a separate library, rather than part of libc, -# make sure it gets included in shared libpq. -SHLIB_LINK+= $(findstring -lcrypt, $(LIBS)) +# Add libraries that libpq depends (or might depend) on into the +# shared library link. (The order in which you list them here doesn't +# matter.) +SHLIB_LINK += $(filter -lcrypt -ldes -lkrb -lcom_err -lcrypto -lk5crypto -lkrb5 -lssl -lsocket -lnsl, $(LIBS)) -# Include kerberos libraries into libpq -SHLIB_LINK += $(KRB_LIBS) all: all-lib |
