1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-29 21:47:30 +03:00

r25984: ldb: use MDLD macros from libreplace and use results to build share modules

metze
(This used to be commit 113efcd85685e0c42eb51eb0370e789362c8071a)
This commit is contained in:
Stefan Metzmacher 2007-11-16 08:35:48 +01:00
parent d47be61769
commit 15cb7772f8
2 changed files with 7 additions and 2 deletions

View 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@
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)

View File

@ -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)