mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
wafsamba: move -L/some/path from LINKFLAGS_PYEMBED to LIBPATH_PYEMBED
LINKFLAGS should not have path components. This fixes the build on systems like FreeBSD where python is located in /usr/local/lib. BUG: https://bugzilla.samba.org/show_bug.cgi?id=12724 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Tue Apr 4 16:10:18 CEST 2017 on sn-devel-144
This commit is contained in:
parent
a4599b3011
commit
d1b88c6a6e
@ -90,6 +90,12 @@ def _check_python_headers(conf, mandatory):
|
||||
conf.env['PYTHON_LIBNAME_SO_ABI_FLAG'] = (
|
||||
conf.env['PYTHON_SO_ABI_FLAG'].replace('_', '-'))
|
||||
|
||||
for lib in conf.env['LINKFLAGS_PYEMBED']:
|
||||
if lib.startswith('-L'):
|
||||
conf.env.append_unique('LIBPATH_PYEMBED', lib[2:]) # strip '-L'
|
||||
conf.env['LINKFLAGS_PYEMBED'].remove(lib)
|
||||
|
||||
return
|
||||
|
||||
def PYTHON_BUILD_IS_ENABLED(self):
|
||||
return self.CONFIG_SET('HAVE_PYTHON_H')
|
||||
|
Loading…
Reference in New Issue
Block a user