From e72524218d2512470cfe5582ed15417ae4dbc37e Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Thu, 14 Jun 2012 21:06:18 +0000 Subject: [PATCH] Fixed setting of LIBPATH when linking the Python module This resolves some problems when building with non-default Python installations. --- src/python/SConscript | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/python/SConscript b/src/python/SConscript index 78ab88f66..f96f6d47f 100644 --- a/src/python/SConscript +++ b/src/python/SConscript @@ -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')