r25984: ldb: use MDLD macros from libreplace and use results to build share modules
authorStefan Metzmacher <metze@samba.org>
Fri, 16 Nov 2007 07:35:48 +0000 (08:35 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 21 Dec 2007 04:45:28 +0000 (05:45 +0100)
metze

source/lib/ldb/Makefile.in
source/lib/ldb/configure.ac

index dcff451ec510b252779244cb0d208c435b3fe363..31ab5c0b2d7356fc17d68d99c16489f7761bd2bb 100644 (file)
@@ -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@
 
        $(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) \
 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
 
 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)
 
 bin/ldbadd: tools/ldbadd.o tools/cmdline.o $(LIBS)
        $(CC) -o bin/ldbadd tools/ldbadd.o tools/cmdline.o $(LIB_FLAGS) $(LD_EXPORT_DYNAMIC)
index bf7b5b05a98412106cd4eb1ea632d44702ae8147..4a8e49489cafcbc382c6f15fb6c4703616d73e9e 100644 (file)
@@ -72,6 +72,8 @@ AC_LD_PICFLAG
 AC_LD_SHLDFLAGS
 AC_LD_SHLIBEXT
 AC_LD_SONAMEFLAG
 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)
 
 m4_include(libldb.m4)
 AC_OUTPUT(Makefile ldb.pc)