]> git.sur5r.net Git - openldap/commitdiff
ITS#2526 Fix slapi builds
authorHoward Chu <hyc@openldap.org>
Tue, 23 Sep 2003 06:11:38 +0000 (06:11 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 23 Sep 2003 06:11:38 +0000 (06:11 +0000)
  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.

servers/slapd/Makefile.in
servers/slapd/slapi/Makefile.in
servers/slapd/tools/Makefile.in

index c571c12f04eb22c422852168d8e49a79e1b9bb09..7f9e2a158a8caa7c5c4a78c17c1b302585431a09 100644 (file)
@@ -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) \
index d93f9d9fd2bf0fa7844f04b40a4314f4f8e29f6a..d803f02f80643e75d7e6701f4820bc7fac2b7eaf 100644 (file)
@@ -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
index dbddeb02c025d4a1ba3463578fdc0bcba5ca5ce2..081e9aea5695c770df6207f90377732e5abd9b69 100644 (file)
@@ -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