]> git.sur5r.net Git - openldap/commitdiff
fix tools build when SLAPI is enabled
authorPierangelo Masarati <ando@openldap.org>
Mon, 7 Apr 2003 09:33:10 +0000 (09:33 +0000)
committerPierangelo Masarati <ando@openldap.org>
Mon, 7 Apr 2003 09:33:10 +0000 (09:33 +0000)
servers/slapd/tools/Makefile.in

index e33a31a83ee23d5ce5cba5b3e1a4449ff776391f..534c80094f5ab21ec823d6d1b964b77431154cf0 100644 (file)
@@ -27,8 +27,8 @@ XLIBS = $(SLAPD_L) $(LDBM_LIBS)
 XXLIBS = $(SLAPD_LIBS) \
        $(LDBM_LIBS) $(SECURITY_LIBS) \
        $(LDIF_LIBS) $(LUTIL_LIBS)
-XXXLIBS = $(LTHREAD_LIBS) $(SLAPI_LIBS) \
-       @LIBSLAPITOOLS@ $(MODULES_LIBS)
+XXXLIBS = $(LTHREAD_LIBS)
+SLAPI_DEP_LIBS = $(LIBS) $(SLAPI_LIBS) @LIBSLAPITOOLS@ $(MODULES_LIBS)
 
 STATIC_DEPENDS=@SLAPD_NO_STATIC@ ../libbackends.a
 
@@ -58,13 +58,16 @@ build-progs: $(PROGRAMS)
 # SLAP Tools
 #
 slapadd:       slapadd.o $(STATIC_DEPENDS) $(SLAPOBJS) $(SLAPD_L) 
-       $(LTLINK) -o $@ slapadd.o $(SLAPOBJS) $(STATIC_DEPENDS) $(LIBS)
+       $(LTLINK) -o $@ slapadd.o $(SLAPOBJS) $(STATIC_DEPENDS) \
+       $(SLAPI_DEP_LIBS)
 
 slapcat:       slapcat.o $(STATIC_DEPENDS) $(SLAPOBJS) $(SLAPD_L) 
-       $(LTLINK) -o $@ slapcat.o $(SLAPOBJS) $(STATIC_DEPENDS) $(LIBS)
+       $(LTLINK) -o $@ slapcat.o $(SLAPOBJS) $(STATIC_DEPENDS) \
+       $(SLAPI_DEP_LIBS)
 
 slapindex:     slapindex.o $(STATIC_DEPENDS) $(SLAPOBJS) $(SLAPD_L) 
-       $(LTLINK) -o $@ slapindex.o $(SLAPOBJS) $(STATIC_DEPENDS) $(LIBS)
+       $(LTLINK) -o $@ slapindex.o $(SLAPOBJS) $(STATIC_DEPENDS) \
+       $(SLAPI_DEP_LIBS)
 
 slappasswd:            slappasswd.o $(SLAPD_L) 
        $(LTLINK) -o $@ slappasswd.o $(LIBS)