Fixed setting of LIBPATH when linking the Python module

This resolves some problems when building with non-default Python
installations.
This commit is contained in:
Ray Speth 2012-06-14 21:06:18 +00:00
parent 8b3f9c2c1c
commit e72524218d

View file

@ -9,7 +9,8 @@ gcv = distutils.sysconfig.get_config_var
localenv.Append(CPPPATH=[gcv('INCLUDEPY'), env['python_array_include']],
CPPFLAGS=((gcv('BASECFLAGS') or '').split() +
(gcv('OPT') or '').split()))
(gcv('OPT') or '').split()),
LIBPATH=(gcv('LIBDIR') or ''))
if '-Wstrict-prototypes' in localenv['CPPFLAGS']:
localenv['CPPFLAGS'].remove('-Wstrict-prototypes')