build: allow some python variable overrides
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Wed, 12 Feb 2014 22:59:19 +0000 (14:59 -0800)
committerJeremy Allison <jra@samba.org>
Thu, 13 Feb 2014 05:03:26 +0000 (06:03 +0100)
commitf8c179b80e1a95ce4eec60108a915fb615efab39
treecae9eca59ca3251e4a38fbf00359c2230b0393b1
parenta9ccdec008ebcb1b286eede4f43167e3e4d4cbe0
build: allow some python variable overrides

The python variables (settings) are fetched from a running python
interpreter which usually isn't the target one when cross compiling,
hence libraries and flags aren't the same and can pollute the target build.
Allow some of these variables to be redefined via environment variables
in order to aid cross-compiling.
According to testing python_LDFLAGS and python_LIBDIR should be enough.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Feb 13 06:03:26 CET 2014 on sn-devel-104
buildtools/wafadmin/Tools/python.py