waf: parse LDFLAGS from python
authorSteven Siloti <ssiloti@gmail.com>
Thu, 24 Oct 2013 03:46:05 +0000 (20:46 -0700)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 25 Oct 2013 00:48:35 +0000 (02:48 +0200)
commit319c2d731148adda260a2fba9719ca8c6dc287f5
tree26ebae2d3a71b5aa571469423e158187ee5b1801
parent64f5e24100a764ec198cab9a8d2c43fa86e7027c
waf: parse LDFLAGS from python

The LDFLAGS returned by get_python_variables may contain additional library
search paths. These need to be parsed out and placed in LIBPATH to maintain
correct ordering of search paths in the final link flags.

Specifically, appending LDFLAGS directly to LINKFLAGS on my system was causing
/usr/lib to be the first search path specified. This lead to linking against
installed libraries rather than the versions from the current build.

Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Fri Oct 25 02:48:35 CEST 2013 on sn-devel-104
buildtools/wafadmin/Tools/python.py