scons: no direct linking to python on platforms other than darwin

This commit is contained in:
Dane Springmeyer 2010-09-19 18:10:41 +00:00
parent 8e708a8160
commit d73d72d509

View file

@ -94,6 +94,9 @@ if env['PLATFORM'] == 'Darwin':
else:
# TODO - do we need to pass -L/?
python_link_flag = '-lpython%s' % env['PYTHON_VERSION']
else:
# all other platforms we don't directly link python
python_link_flag = ''
if env['CUSTOM_LDFLAGS']:
linkflags = '%s %s' % (env['CUSTOM_LDFLAGS'], python_link_flag)