From 312fd94002cd576140e5d90ef70ea2dd053c949a Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sat, 12 Nov 2011 05:20:10 +0100 Subject: 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. --- buildtools/wafsamba/samba_python.py | 4 ++-- buildtools/wafsamba/wafsamba.py | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'buildtools') diff --git a/buildtools/wafsamba/samba_python.py b/buildtools/wafsamba/samba_python.py index e9afa939a3..f46aacce47 100644 --- a/buildtools/wafsamba/samba_python.py +++ b/buildtools/wafsamba/samba_python.py @@ -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) diff --git a/buildtools/wafsamba/wafsamba.py b/buildtools/wafsamba/wafsamba.py index 876cec5287..0a120da0d2 100644 --- a/buildtools/wafsamba/wafsamba.py +++ b/buildtools/wafsamba/wafsamba.py @@ -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: -- cgit