summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2013-09-28 23:48:40 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2013-09-28 23:48:40 (GMT)
commit643238eb53805bc77148adbca83cd22e34d8aeba (patch)
tree950461c58f4a7ad599369d0cfabe9c4883204b5e
parent3103631f664b0f823d51531801986caef04fdf9e (diff)
downloadcpython-643238eb53805bc77148adbca83cd22e34d8aeba.zip
cpython-643238eb53805bc77148adbca83cd22e34d8aeba.tar.gz
cpython-643238eb53805bc77148adbca83cd22e34d8aeba.tar.bz2
Issue #4366: Fix building extensions on all platforms when --enable-shared is used.
-rw-r--r--Lib/distutils/command/build_ext.py7
-rw-r--r--Misc/NEWS3
2 files changed, 6 insertions, 4 deletions
diff --git a/Lib/distutils/command/build_ext.py b/Lib/distutils/command/build_ext.py
index 1ad0d5f..bc6a23f 100644
--- a/Lib/distutils/command/build_ext.py
+++ b/Lib/distutils/command/build_ext.py
@@ -247,11 +247,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', 'gnu', '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'))
diff --git a/Misc/NEWS b/Misc/NEWS
index 86a8e35..263712c 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -71,6 +71,9 @@ Core and Builtins
Library
-------
+- Issue #4366: Fix building extensions on all platforms when --enable-shared
+ is used.
+
- Issue #18950: Fix miscellaneous bugs in the sunau module.
Au_read.readframes() now updates current file position and reads correct
number of frames from multichannel stream. Au_write.writeframesraw() now