mirror of
https://github.com/samba-team/samba.git
synced 2025-08-03 04:22:09 +03:00
waf: Don't link python modules against libpython2.x, consistent with other Python modules.
Rather, rely just on waf's pyext feature. This fixes a warning from dh_python2.
This commit is contained in:
@ -45,7 +45,7 @@ def SAMBA_PYTHON(bld, name,
|
||||
cflags=cflags,
|
||||
local_include=local_include,
|
||||
vars=vars,
|
||||
pyembed=True,
|
||||
pyext=True,
|
||||
enabled=enabled)
|
||||
return
|
||||
|
||||
@ -61,7 +61,7 @@ def SAMBA_PYTHON(bld, name,
|
||||
local_include=local_include,
|
||||
vars=vars,
|
||||
link_name=link_name,
|
||||
pyembed=True,
|
||||
pyext=True,
|
||||
target_type='PYTHON',
|
||||
install_path='${PYTHONARCHDIR}',
|
||||
enabled=enabled)
|
||||
|
@ -213,9 +213,8 @@ def SAMBA_LIBRARY(bld, libname, source,
|
||||
features = 'cc cshlib symlink_lib install_lib'
|
||||
if target_type == 'PYTHON':
|
||||
features += ' pyext'
|
||||
if pyext or pyembed:
|
||||
# this is quite strange. we should add pyext feature for pyext
|
||||
# but that breaks the build. This may be a bug in the waf python tool
|
||||
allow_undefined_symbols = True
|
||||
if pyembed:
|
||||
features += ' pyembed'
|
||||
|
||||
if abi_directory:
|
||||
|
@ -5,7 +5,7 @@ bld.SAMBA_LIBRARY('samba_python',
|
||||
deps='LIBPYTHON pytalloc-util pyrpc_util',
|
||||
grouping_library=True,
|
||||
private_library=True,
|
||||
pyext=True)
|
||||
pyembed=True)
|
||||
|
||||
bld.SAMBA_SUBSYSTEM('LIBPYTHON',
|
||||
source='modules.c',
|
||||
|
Reference in New Issue
Block a user