Commit d8c87402 authored by Barry Warsaw's avatar Barry Warsaw

Only hack cmd.library_dirs when running under Py_ENABLE_SHARED. Tested both

with and without --enable-shared on Ubuntu 10.10.  Hopefully this finally
solves bug 10126.  Will check 3.1 and py3k next.
parent 7404daed
......@@ -59,7 +59,8 @@ class BuildExtTestCase(support.TempdirManager,
# To further add to the fun, we can't just add library_dirs to the
# Extension() instance because that doesn't get plumbed through to the
# final compiler command.
if not sys.platform.startswith('win'):
if (sysconfig.get_config_var('Py_ENABLE_SHARED') and
not sys.platform.startswith('win')):
runshared = sysconfig.get_config_var('RUNSHARED')
if runshared is None:
cmd.library_dirs = ['.']
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment