summaryrefslogtreecommitdiff
path: root/source3/param
diff options
context:
space:
mode:
authorJoe Guo <joeg@catalyst.net.nz>2018-03-28 15:53:50 +1300
committerAndrew Bartlett <abartlet@samba.org>2018-04-05 08:59:09 +0200
commitd28379dc4acef6ddb887a2ead0c22e9f93a8aa50 (patch)
treeb5de2b6fa0bf590c4668efc4eb25ccdd3040a65c /source3/param
parentfe9e62935c459e4cdab0cefea1412614dd1969a8 (diff)
downloadsamba-d28379dc4acef6ddb887a2ead0c22e9f93a8aa50.tar.gz
wscript_build: fix c modules deps name for Python 3
In wscript_build, the lib name in deps list may have postfix for Python 3. Instead of hard coding the base name directly, need to load correct name for each Python version with `bld.pyembed_libname`. Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Diffstat (limited to 'source3/param')
-rw-r--r--source3/param/wscript_build3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/param/wscript_build b/source3/param/wscript_build
index c9c42a35625..d999d0b89f2 100644
--- a/source3/param/wscript_build
+++ b/source3/param/wscript_build
@@ -15,10 +15,11 @@ bld.SAMBA_GENERATOR('s3_param_proto_h',
rule='${PYTHON} ${SRC[0].abspath(env)} --file ${SRC[1].abspath(env)} --output ${TGT} --mode=S3PROTO')
for env in bld.gen_python_environments():
+ pytalloc_util = bld.pyembed_libname('pytalloc-util')
bld.SAMBA3_PYTHON('pys3param',
source='pyparam.c',
deps='smbconf',
- public_deps='samba-hostconfig pytalloc-util talloc',
+ public_deps=' '.join(['samba-hostconfig', pytalloc_util, 'talloc']),
realname='samba/samba3/param.so')
bld.SAMBA3_SUBSYSTEM('param_service',