mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
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.
This commit is contained in:
parent
a8ae9bb31d
commit
28d466ba66
@ -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) \
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user