diff options
author | Joe Guo <joeg@catalyst.net.nz> | 2018-03-28 15:53:50 +1300 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2018-04-05 08:59:09 +0200 |
commit | d28379dc4acef6ddb887a2ead0c22e9f93a8aa50 (patch) | |
tree | b5de2b6fa0bf590c4668efc4eb25ccdd3040a65c /source3/passdb/wscript_build | |
parent | fe9e62935c459e4cdab0cefea1412614dd1969a8 (diff) | |
download | samba-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/passdb/wscript_build')
-rw-r--r-- | source3/passdb/wscript_build | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/passdb/wscript_build b/source3/passdb/wscript_build index 0ae2c4def40..2a35392f209 100644 --- a/source3/passdb/wscript_build +++ b/source3/passdb/wscript_build @@ -33,9 +33,11 @@ bld.SAMBA3_MODULE('pdb_samba_dsdb', enabled=bld.SAMBA3_IS_ENABLED_MODULE('pdb_samba_dsdb') and bld.AD_DC_BUILD_IS_ENABLED()) for env in bld.gen_python_environments(): + pyrpc_util = bld.pyembed_libname('pyrpc_util') + pytalloc_util = bld.pyembed_libname('pytalloc-util') bld.SAMBA3_PYTHON('pypassdb', source='py_passdb.c', deps='pdb', - public_deps='samba-util tdb talloc pyrpc_util pytalloc-util', + public_deps=' '.join(['samba-util', 'tdb', 'talloc', pyrpc_util, pytalloc_util]), realname='samba/samba3/passdb.so' ) |