summaryrefslogtreecommitdiff
path: root/lib/ldb/wscript
diff options
context:
space:
mode:
authorTimur I. Bakeyev <timur@iXsystems.com>2018-05-18 10:10:50 +0800
committerStefan Metzmacher <metze@samba.org>2018-05-25 10:01:22 +0200
commit95c117ff1114122aad367adab6c738b835a7c3d3 (patch)
treefae2c3179968bc2c63705369d8a6511a5c48cd7b /lib/ldb/wscript
parent4c354cd551715e98b9d016be6f1c6bc02a931192 (diff)
downloadsamba-95c117ff1114122aad367adab6c738b835a7c3d3.tar.gz
Make ldb configuration --disable-python work as intended
Signed-off-by: Timur I. Bakeyev <timur@iXsystems.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'lib/ldb/wscript')
-rw-r--r--lib/ldb/wscript13
1 files changed, 6 insertions, 7 deletions
diff --git a/lib/ldb/wscript b/lib/ldb/wscript
index dfca1bc7b34..412bd4f0069 100644
--- a/lib/ldb/wscript
+++ b/lib/ldb/wscript
@@ -201,9 +201,15 @@ def build(bld):
bld.RECURSE('lib/tdb')
if bld.env.standalone_ldb:
+ if not 'PACKAGE_VERSION' in bld.env:
+ bld.env.PACKAGE_VERSION = VERSION
+ bld.env.PKGCONFIGDIR = '${LIBDIR}/pkgconfig'
private_library = False
else:
private_library = True
+ # we're not currently linking against the ldap libs, but ldb.pc.in
+ # has @LDAP_LIBS@
+ bld.env.LDAP_LIBS = ''
LDB_MAP_SRC = bld.SUBDIR('ldb_map',
'ldb_map.c ldb_map_inbound.c ldb_map_outbound.c')
@@ -224,13 +230,6 @@ def build(bld):
if bld.PYTHON_BUILD_IS_ENABLED():
if not bld.CONFIG_SET('USING_SYSTEM_PYLDB_UTIL'):
for env in bld.gen_python_environments(['PKGCONFIGDIR']):
- # we're not currently linking against the ldap libs, but ldb.pc.in
- # has @LDAP_LIBS@
- bld.env.LDAP_LIBS = ''
-
- if not 'PACKAGE_VERSION' in bld.env:
- bld.env.PACKAGE_VERSION = VERSION
- bld.env.PKGCONFIGDIR = '${LIBDIR}/pkgconfig'
name = bld.pyembed_libname('pyldb-util')
bld.SAMBA_LIBRARY(name,