Fixes windows build with new MS AD sync Add CLIENT_LIBS for libraries required to build the clients.

This commit is contained in:
Quanah Gibson-Mount 2019-01-01 17:37:25 +00:00
parent d3b1558dcb
commit fb35befa9a
3 changed files with 7 additions and 1 deletions

View File

@ -156,6 +156,8 @@ INCLUDEDIR= $(top_srcdir)/include
LDAP_INCPATH= -I$(LDAP_INCDIR) -I$(INCLUDEDIR)
LDAP_LIBDIR= $(top_builddir)/libraries
CLIENT_LIBS = @CLIENT_LIBS@
LUTIL_LIBS = @LUTIL_LIBS@
LTHREAD_LIBS = @LTHREAD_LIBS@

View File

@ -26,7 +26,7 @@ LDAP_LIBDIR= ../../libraries
MKVOPTS = -s
XLIBS = $(LDAP_L)
XXLIBS = $(SECURITY_LIBS) $(LUTIL_LIBS)
XXLIBS = $(SECURITY_LIBS) $(LUTIL_LIBS) $(CLIENT_LIBS)
XSRCS = ldsversion.c ldmversion.c lddversion.c ldrversion.c ldpversion.c \
ldwversion.c ldvversion.c ldcversion.c ldeversion.c lduversion.c

View File

@ -539,6 +539,8 @@ SLAPD_NDB_INCS=
LTHREAD_LIBS=
LUTIL_LIBS=
CLIENT_LIBS=
SLAPD_LIBS=
BUILD_SLAPD=no
@ -1101,6 +1103,7 @@ if test $have_uuid = no ; then
]])],[need_rpcrt=yes],[need_rpcrt=no])
if test $need_rpcrt = yes; then
SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
CLIENT_LIBS="$CLIENT_LIBS -lrpcrt4"
fi
LIBS="$save_LIBS"
AC_MSG_RESULT($need_rpcrt)
@ -3179,6 +3182,7 @@ dnl overlays
AC_SUBST(BUILD_VALSORT)
AC_SUBST(LDAP_LIBS)
AC_SUBST(CLIENT_LIBS)
AC_SUBST(SLAPD_LIBS)
AC_SUBST(BDB_LIBS)
AC_SUBST(SLAPD_NDB_LIBS)