diff options
author | Stefan Metzmacher <metze@samba.org> | 2010-12-08 15:12:57 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2010-12-08 19:07:15 +0100 |
commit | 65965566d23cd74ce8a86978864c4a7ed26b2f59 (patch) | |
tree | a717da35087ac15273967d8f56a113f6d74d7a72 /source4 | |
parent | 658f4597ee88cc51bb73ac88df0d28b335e358af (diff) | |
download | samba-65965566d23cd74ce8a86978864c4a7ed26b2f59.tar.gz samba-65965566d23cd74ce8a86978864c4a7ed26b2f59.tar.bz2 samba-65965566d23cd74ce8a86978864c4a7ed26b2f59.zip |
s4:ldb: build libldb and pyldb-util as private libraries when building for samba4
This matches the behavior of the talloc and tdb builds.
metze
Diffstat (limited to 'source4')
-rw-r--r-- | source4/lib/ldb/wscript | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/source4/lib/ldb/wscript b/source4/lib/ldb/wscript index 223df2ffe9..8a4e83b69d 100644 --- a/source4/lib/ldb/wscript +++ b/source4/lib/ldb/wscript @@ -72,6 +72,13 @@ def build(bld): bld.RECURSE('lib/popt') bld.RECURSE('lib/replace') + if bld.env.standalone_ldb: + private_library = False + vnum = VERSION + else: + private_library = True + vnum = None + LDB_MAP_SRC = bld.SUBDIR('ldb_map', 'ldb_map.c ldb_map_inbound.c ldb_map_outbound.c') @@ -101,7 +108,8 @@ def build(bld): deps='ldb', source='pyldb_util.c', public_headers='pyldb.h', - vnum=VERSION, + vnum=vnum, + private_library=private_library, pc_files='pyldb-util.pc', pyext=True) @@ -123,10 +131,11 @@ def build(bld): public_headers='include/ldb.h include/ldb_errors.h '\ 'include/ldb_module.h include/ldb_handlers.h', pc_files='ldb.pc', - vnum=VERSION, + vnum=vnum, + private_library=private_library, manpages='man/ldb.3', abi_file = abi_file, - abi_match = abi_match) + abi_match = abi_match) bld.SAMBA_PYTHON('pyldb', 'pyldb.c', |