mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
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 next.
This commit is contained in:
parent
9a8439d3e9
commit
4ebfdf01bb
1 changed files with 2 additions and 1 deletions
|
@ -51,7 +51,8 @@ class BuildExtTestCase(TempdirManager,
|
||||||
# To further add to the fun, we can't just add library_dirs to the
|
# 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
|
# Extension() instance because that doesn't get plumbed through to the
|
||||||
# final compiler command.
|
# 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')
|
runshared = sysconfig.get_config_var('RUNSHARED')
|
||||||
if runshared is None:
|
if runshared is None:
|
||||||
cmd.library_dirs = ['.']
|
cmd.library_dirs = ['.']
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue