From 15cb7772f8093d109df29e41bbbb134ac08158b5 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 16 Nov 2007 08:35:48 +0100 Subject: r25984: ldb: use MDLD macros from libreplace and use results to build share modules metze (This used to be commit 113efcd85685e0c42eb51eb0370e789362c8071a) --- source4/lib/ldb/Makefile.in | 7 +++++-- source4/lib/ldb/configure.ac | 2 ++ 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'source4/lib/ldb') diff --git a/source4/lib/ldb/Makefile.in b/source4/lib/ldb/Makefile.in index dcff451ec5..31ab5c0b2d 100644 --- a/source4/lib/ldb/Makefile.in +++ b/source4/lib/ldb/Makefile.in @@ -47,6 +47,9 @@ CFLAGS=-g -I$(srcdir)/include -Iinclude -I$(srcdir) -I$(srcdir)/.. \ $(POPT_CFLAGS) $(TALLOC_CFLAGS) $(TDB_CFLAGS) \ -DLIBDIR=\"$(libdir)\" -DSHLIBEXT=\"$(SHLIBEXT)\" -DUSE_MMAP=1 @CFLAGS@ +MDLD = @MDLD@ +MDLD_FLAGS = @MDLD_FLAGS@ + LDB_LIB = $(STATICLIB) LIB_FLAGS=$(LDFLAGS) -Llib $(LDB_LIB) $(LIBS) $(POPT_LIBS) $(TALLOC_LIBS) \ @@ -125,8 +128,8 @@ lib/libldb.a: $(OBJS) lib/libnss_ldb.$(SHLIBEXT).2: $(NSS_OBJ) $(SOLIB) $(CC) $(SHLD_FLAGS) -o $@ $(NSS_OBJ) $(LDFLAGS) $(SOLIB) @SONAMEFLAG@libnss_ldb.$(SHLIBEXT).2 -sample_module.$(SHLIBEXT): tests/sample_module.o - $(CC) $(SHLD_FLAGS) $(LDFLAGS) -o $@ tests/sample_module.o +sample_module.$(SHLIBEXT): tests/sample_module.o + $(MDLD) $(MDLD_FLAGS) -o $@ tests/sample_module.o bin/ldbadd: tools/ldbadd.o tools/cmdline.o $(LIBS) $(CC) -o bin/ldbadd tools/ldbadd.o tools/cmdline.o $(LIB_FLAGS) $(LD_EXPORT_DYNAMIC) diff --git a/source4/lib/ldb/configure.ac b/source4/lib/ldb/configure.ac index bf7b5b05a9..4a8e49489c 100644 --- a/source4/lib/ldb/configure.ac +++ b/source4/lib/ldb/configure.ac @@ -72,6 +72,8 @@ AC_LD_PICFLAG AC_LD_SHLDFLAGS AC_LD_SHLIBEXT AC_LD_SONAMEFLAG +AC_LIBREPLACE_MDLD +AC_LIBREPLACE_MDLD_FLAGS m4_include(libldb.m4) AC_OUTPUT(Makefile ldb.pc) -- cgit