summaryrefslogtreecommitdiff
path: root/source4/lib/ldb-samba/wscript_build
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-06-20 11:49:08 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-06-20 11:49:08 +0200
commit9bcd0daba2cdd2acd6fc0e3de44f5138f2f3303f (patch)
treef24d7e9c4b4fcdcb768040129a878f96a62f2bc3 /source4/lib/ldb-samba/wscript_build
parent44c01a5eb45a0cd5ca3de8be5c4680de75418dce (diff)
downloadsamba-9bcd0daba2cdd2acd6fc0e3de44f5138f2f3303f.tar.gz
samba-9bcd0daba2cdd2acd6fc0e3de44f5138f2f3303f.tar.bz2
samba-9bcd0daba2cdd2acd6fc0e3de44f5138f2f3303f.zip
ldb: Change LDBSAMBA back to subsystem, update comments, use different
ABI file based on whether ldb_ildap is included.
Diffstat (limited to 'source4/lib/ldb-samba/wscript_build')
-rw-r--r--source4/lib/ldb-samba/wscript_build14
1 files changed, 9 insertions, 5 deletions
diff --git a/source4/lib/ldb-samba/wscript_build b/source4/lib/ldb-samba/wscript_build
index 717a8465a7..970f495eca 100644
--- a/source4/lib/ldb-samba/wscript_build
+++ b/source4/lib/ldb-samba/wscript_build
@@ -1,11 +1,15 @@
#!/usr/bin/env python
+# LDBSAMBA gets included in the ldb build when we are building ldb_ildap
+# as a built-in module and this delutes the symbols in the ldb library with
+# the symbols of all of ldb_ildap's dependencies.
-# It is important that this is a library!
-# Otherwise samba specific symbols end up in
-# 'ldb' and we fail the ABI check, when not using
-# a system 'ldb'.
-bld.SAMBA_LIBRARY('LDBSAMBA',
+# However, LDBSAMBA has to be a subsystem, otherwise we end up with an unusable
+# build when building against the system ldb.
+
+# When adding/modifying public symbols in LDBSAMBA, please make sure that
+# lib/ldb/ABI/ldb-samba-X.sigs gets updated.
+bld.SAMBA_SUBSYSTEM('LDBSAMBA',
source='ldif_handlers.c ldb_wrap.c',
autoproto='ldif_handlers_proto.h',
public_deps='ldb',