Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 0bdc18d

Browse files
committed
Add LDAP_LIBS_FE to $(libpq) for static or AIX linking, per Albe Laurenz.
1 parent bb87c7b commit 0bdc18d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/Makefile.global.in

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*-makefile-*-
2-
# $PostgreSQL: pgsql/src/Makefile.global.in,v 1.228 2006/09/10 22:07:02 tgl Exp $
2+
# $PostgreSQL: pgsql/src/Makefile.global.in,v 1.229 2006/09/11 13:35:08 tgl Exp $
33

44
#------------------------------------------------------------------------------
55
# All PostgreSQL makefiles include this file and use the variables it sets,
@@ -343,12 +343,14 @@ libpq := -L$(libpq_builddir) -lpq
343343
# If doing static linking, shared library dependency info isn't available,
344344
# so add in the libraries that libpq depends on.
345345
ifeq ($(enable_shared), no)
346-
libpq += $(filter -lintl -lssl -lcrypto -lkrb5 -lcrypt, $(LIBS)) $(PTHREAD_LIBS)
346+
libpq += $(filter -lintl -lssl -lcrypto -lkrb5 -lcrypt, $(LIBS)) \
347+
$(LDAP_LIBS_FE) $(PTHREAD_LIBS)
347348
else
348349
# On AIX even shared libraries do not remember their required libs,
349350
# so again add in what libpq depends on.
350351
ifeq ($(PORTNAME), aix)
351-
libpq += $(filter -lintl -lssl -lcrypto -lkrb5 -lcrypt, $(LIBS)) $(PTHREAD_LIBS)
352+
libpq += $(filter -lintl -lssl -lcrypto -lkrb5 -lcrypt, $(LIBS)) \
353+
$(LDAP_LIBS_FE) $(PTHREAD_LIBS)
352354
endif
353355
endif
354356

0 commit comments

Comments
 (0)