1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

r25100: Include LDAP libs in .pc file so linking statically against libldb works again.

(This used to be commit bcf5c9447435a826027626ac89a00eaa6739b12a)
This commit is contained in:
Jelmer Vernooij 2007-09-11 18:24:09 +00:00 committed by Gerald (Jerry) Carter
parent 669adc9f4a
commit 0ca0c0e5a2
4 changed files with 8 additions and 3 deletions

View File

@ -30,11 +30,14 @@ POPT_LIBS = @POPT_LIBS@
POPT_CFLAGS = @POPT_CFLAGS@
POPT_OBJ = @POPT_OBJ@
LDAP_LIBS = @LDAP_LIBS@
CFLAGS=-g -I$(srcdir)/include -Iinclude -I$(srcdir) -I$(srcdir)/.. \
$(POPT_CFLAGS) $(TALLOC_CFLAGS) $(TDB_CFLAGS) \
-DLIBDIR=\"$(libdir)\" -DSHLIBEXT=\"@SHLIBEXT@\" -DUSE_MMAP=1 @CFLAGS@
LIB_FLAGS=@LDFLAGS@ -Llib -lldb @LIBS@ $(POPT_LIBS) $(TALLOC_LIBS) $(TDB_LIBS)
LIB_FLAGS=@LDFLAGS@ -Llib -lldb @LIBS@ $(POPT_LIBS) $(TALLOC_LIBS) $(TDB_LIBS) \
$(LDAP_LIBS)
LDB_TDB_DIR=ldb_tdb
LDB_TDB_OBJ=$(LDB_TDB_DIR)/ldb_tdb.o \

View File

@ -53,9 +53,10 @@ m4_include(libtdb.m4)
m4_include(ldap.m4)
if test x"$with_ldap_support" = x"yes"; then
LIBS="$LIBS -llber -lldap"
CFLAGS="$CFLAGS -DHAVE_LDB_LDAP=1"
EXTRA_OBJ="$EXTRA_OBJ ldb_ldap/ldb_ldap.o"
LDAP_LIBS="-llber -lldap"
AC_SUBST(LDAP_LIBS)
TESTS="$TESTS test-ldap.sh"
fi

View File

@ -10,6 +10,7 @@ Version: @PACKAGE_VERSION@
Requires.private: tdb
Requires: talloc
Libs: -L${libdir} -lldb
Libs.private: @LDAP_LIBS@
Cflags: -I${includedir}
Modulesdir: ${modulesdir}
URL: http://ldb.samba.org/

View File

@ -1,7 +1,7 @@
################################################
# Start SUBSYSTEM LIBLDB_CMDLINE
[SUBSYSTEM::LIBLDB_CMDLINE]
CFLAGS = -Ilib/ldb
CFLAGS = -Ilib/ldb -Ilib/ldb/include
OBJ_FILES= \
cmdline.o
PUBLIC_DEPENDENCIES = LIBLDB LIBPOPT