summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/config.mk
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-08-23 04:53:47 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:16:34 -0500
commit309ef9069096ce09483e2f9a18f191fc53e1c7f4 (patch)
treedd85a81f6bd59c634a0620a4ad2929ad41999cc0 /source4/lib/ldb/config.mk
parent36cb569e9be142f0b4a4e584a365b35e8bfa454d (diff)
downloadsamba-309ef9069096ce09483e2f9a18f191fc53e1c7f4.tar.gz
samba-309ef9069096ce09483e2f9a18f191fc53e1c7f4.tar.bz2
samba-309ef9069096ce09483e2f9a18f191fc53e1c7f4.zip
r17738: solving the seemingly trivial problem of timegm() being missing on
some systems requires quite a large change in ldb. The core problem is that ldb doesn't have its own equivalent of lib/replace/, so we have no sane place to put things like timegm.c This patch moves part of lib/replace/ from Samba4 into ldb, and the next patch will remove those parts from Samba4. We will probably need to similarly move parts of lib/replace/ into lib/talloc/ and lib/tdb/, so that at each level the libraries have replacements for the functions they need, but higher level libraries don't need to re-include replacements if a lower level library already replaces the function (This used to be commit c2f6c217fb4a5c84499246480f00df40b0711074)
Diffstat (limited to 'source4/lib/ldb/config.mk')
-rw-r--r--source4/lib/ldb/config.mk12
1 files changed, 11 insertions, 1 deletions
diff --git a/source4/lib/ldb/config.mk b/source4/lib/ldb/config.mk
index dfbf3db449..1f92cd5d62 100644
--- a/source4/lib/ldb/config.mk
+++ b/source4/lib/ldb/config.mk
@@ -140,6 +140,16 @@ PUBLIC_DEPENDENCIES = \
# End MODULE ldb_tdb
################################################
+################################################
+# Start MODULE ldb_replace
+[MODULE::ldb_replace]
+SUBSYSTEM = ldb
+OBJ_FILES = \
+ replace/timegm.o \
+ replace/replace.o
+# End MODULE ldb_replace
+################################################
+
./lib/ldb/common/ldb_modules.o: lib/ldb/common/ldb_modules.c Makefile
@echo Compiling $<
@$(CC) $(CFLAGS) $(PICFLAG) -DMODULESDIR=\"$(MODULESDIR)/ldb\" -DSHLIBEXT=\"$(SHLIBEXT)\" -c $< -o $@
@@ -166,7 +176,7 @@ OBJ_FILES = \
common/ldb_controls.o \
common/qsort.o
PUBLIC_DEPENDENCIES = \
- LIBREPLACE LIBTALLOC
+ LIBREPLACE LIBTALLOC
MANPAGE = man/ldb.3
PUBLIC_HEADERS = include/ldb.h include/ldb_errors.h
#