mirror of
https://github.com/samba-team/samba.git
synced 2025-03-20 22:50:26 +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 (similar to commit d1b88c6a6edeab4f85fc110eaa8d15e76c7e1f7b)
This commit is contained in:
parent
122e46f9fb
commit
981e667e48
@ -76,6 +76,12 @@ def _check_python_headers(conf, mandatory):
|
||||
else:
|
||||
conf.env['PYTHON_SO_ABI_FLAG'] = ''
|
||||
|
||||
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 SAMBA_PYTHON(bld, name,
|
||||
source='',
|
||||
|
Loading…
x
Reference in New Issue
Block a user