From: Howard Chu Date: Tue, 23 Sep 2003 06:11:38 +0000 (+0000) Subject: ITS#2526 Fix slapi builds X-Git-Tag: OPENLDAP_REL_ENG_2_1_MP~673 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=28d466ba6677a3218af654392d8e673a02f6192c;p=openldap ITS#2526 Fix slapi builds note that -lltdl is added redundantly if --enable-modules was specified. It seems to me that --enable-slapi should have implied --enable-modules from the beginning. --- diff --git a/servers/slapd/Makefile.in b/servers/slapd/Makefile.in index c571c12f04..7f9e2a158a 100644 --- a/servers/slapd/Makefile.in +++ b/servers/slapd/Makefile.in @@ -47,12 +47,14 @@ SLAPD_STATIC_DEPENDS=@SLAPD_NO_STATIC@ libbackends.a SLAPD_STATIC_BACKENDS=@SLAPD_STATIC_BACKENDS@ SLAPD_DYNAMIC_BACKENDS=@SLAPD_DYNAMIC_BACKENDS@ +SLAPI_LIBS=@LIBSLAPI@ @SLAPI_LIBS@ + XDEFS = $(MODULES_CPPFLAGS) XLDFLAGS = $(MODULES_LDFLAGS) XLIBS = $(SLAPD_STATIC_DEPENDS) $(SLAPD_L) XXLIBS = $(LDBM_LIBS) $(SLAPD_LIBS) $(SECURITY_LIBS) $(LDIF_LIBS) $(LUTIL_LIBS) -XXXLIBS = $(LTHREAD_LIBS) $(SLAPI_LIBS) @LIBSLAPI@ $(MODULES_LIBS) +XXXLIBS = $(LTHREAD_LIBS) $(SLAPI_LIBS) $(MODULES_LIBS) BUILD_OPT = "--enable-slapd" BUILD_SRV = @BUILD_SLAPD@ @@ -228,13 +230,11 @@ slapd.exp: libslapd.a dlltool --dllname slapd.exe --input-def slapd.def \ --base-file slapd.base --output-exp $@ -libslapi.a: .slapi +slapi/libslapi.a: FORCE (cd slapi; $(MAKE) $(MFLAGS) all) - cp slapi/.libs/libslapi.a . -.slapi: FORCE - $(AR) ruv slapi/libtmpslapd.a $(OBJS) - (cd slapi; $(MAKE) $(MFLAGS) all) +libslapi.a: slapi/libslapi.a + cp slapi/.libs/libslapi.a . slapd: $(SLAPD_DEPENDS) @LIBSLAPI@ $(LTLINK) -o $@ $(SLAPD_OBJECTS) $(LIBS) \ diff --git a/servers/slapd/slapi/Makefile.in b/servers/slapd/slapi/Makefile.in index d93f9d9fd2..d803f02f80 100644 --- a/servers/slapd/slapi/Makefile.in +++ b/servers/slapd/slapi/Makefile.in @@ -9,7 +9,6 @@ ## written consent of IBM LIBRARY = libslapi.la -#XLIBRARY = libtmpslapd.a #all-common: $(LIBRARY) $(PROGRAMS) # @touch plugin.c slapi_pblock.c slapi_utils.c slapi_ops.c slapi_ext.c @@ -36,8 +35,6 @@ NT_LINK_LIBS = $(AC_LIBS) XINCPATH = -I$(srcdir)/.. -I$(srcdir) XDEFS = $(MODULES_CPPFLAGS) -#UNIX_LINK_LIBS = ./libtmpslapd.a ../libbackends.a ../../../libraries/libavl/libavl.a ../../../libraries/liblber/.libs/liblber.a ../../../libraries/libldbm/libldbm.a ../../../libraries/libldif/libldif.a ../../../libraries/liblutil/liblutil.a ../../../libraries/liblunicode/liblunicode.a ../../../libraries/libldap_r/.libs/libldap_r.a ./libtmpslapd.a - BUILD_MOD = @BUILD_SLAPI@ install-local: FORCE diff --git a/servers/slapd/tools/Makefile.in b/servers/slapd/tools/Makefile.in index dbddeb02c0..081e9aea56 100644 --- a/servers/slapd/tools/Makefile.in +++ b/servers/slapd/tools/Makefile.in @@ -28,7 +28,7 @@ XXLIBS = $(SLAPD_LIBS) \ $(LDBM_LIBS) $(SECURITY_LIBS) \ $(LDIF_LIBS) $(LUTIL_LIBS) XXXLIBS = $(LTHREAD_LIBS) -SLAPI_DEP_LIBS = $(LIBS) $(SLAPI_LIBS) @LIBSLAPITOOLS@ $(MODULES_LIBS) +SLAPI_DEP_LIBS = $(LIBS) @LIBSLAPITOOLS@ @SLAPI_LIBS@ $(MODULES_LIBS) STATIC_DEPENDS=@SLAPD_NO_STATIC@ ../libbackends.a