add the python libpath to ensure proper linking

This commit is contained in:
Dane Springmeyer 2013-03-12 18:43:58 -07:00
parent b479de9e96
commit 9c7b155b1d

View file

@ -39,7 +39,7 @@ if env['PLATFORM'] == 'Darwin' and env['FRAMEWORK_PYTHON']:
python_link_flag = '-F/ -framework Python'
else:
# on linux the linkflags end up to early in the compile flags to work correctly
python_link_flag = ''
python_link_flag = '-L%s' % env['PYTHON_SYS_PREFIX'] + os.path.sep + env['LIBDIR_SCHEMA']
# so instead add to libraries
libraries.append('python%s' % env['PYTHON_VERSION'])