diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2013-09-28 23:48:40 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2013-09-28 23:48:40 (GMT) |
commit | 0879b168bf73d3b7e1e6443bdf162c3ecf4f55b7 (patch) | |
tree | a5543b58bf9663df5afe153798150c52348defe8 /Lib/distutils | |
parent | a094f04e7b4b34e3efc3cf9618b136756ad51a10 (diff) | |
download | cpython-0879b168bf73d3b7e1e6443bdf162c3ecf4f55b7.zip cpython-0879b168bf73d3b7e1e6443bdf162c3ecf4f55b7.tar.gz cpython-0879b168bf73d3b7e1e6443bdf162c3ecf4f55b7.tar.bz2 |
Issue #4366: Fix building extensions on all platforms when --enable-shared is used.
Diffstat (limited to 'Lib/distutils')
-rw-r--r-- | Lib/distutils/command/build_ext.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Lib/distutils/command/build_ext.py b/Lib/distutils/command/build_ext.py index 923197b..f0a7d4c 100644 --- a/Lib/distutils/command/build_ext.py +++ b/Lib/distutils/command/build_ext.py @@ -231,12 +231,10 @@ class build_ext (Command): # building python standard extensions self.library_dirs.append('.') - # for extensions under Linux or Solaris with a shared Python library, + # For building extensions with a shared Python library, # Python's library directory must be appended to library_dirs - sysconfig.get_config_var('Py_ENABLE_SHARED') - if ((sys.platform.startswith('linux') or sys.platform.startswith('gnu') - or sys.platform.startswith('sunos')) - and sysconfig.get_config_var('Py_ENABLE_SHARED')): + # See Issues: #1600860, #4366 + if (sysconfig.get_config_var('Py_ENABLE_SHARED')): if sys.executable.startswith(os.path.join(sys.exec_prefix, "bin")): # building third party extensions self.library_dirs.append(sysconfig.get_config_var('LIBDIR')) |