diff options
author | doko <doko@ubuntu.com> | 2013-03-21 13:31:41 -0700 |
---|---|---|
committer | doko <doko@ubuntu.com> | 2013-03-21 13:31:41 -0700 |
commit | 631f584c24d259829ee1f48299d328ae3ef490ad (patch) | |
tree | 7ca2865c87a0e3760ccff8128552e8c7df375e20 /Lib/distutils/command | |
parent | c0b12341eacce61b7cfe358a988dd5671bef9474 (diff) | |
parent | f15ac6262b063528d4d140021b8bbfe3a1100a81 (diff) | |
download | cpython-631f584c24d259829ee1f48299d328ae3ef490ad.tar.gz |
- Issue #16754: Fix the incorrect shared library extension on linux. Introduce
two makefile macros SHLIB_SUFFIX and EXT_SUFFIX. SO now has the value of
SHLIB_SUFFIX again (as in 2.x and 3.1). The SO macro is removed in 3.4.
Diffstat (limited to 'Lib/distutils/command')
-rw-r--r-- | Lib/distutils/command/build_ext.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/distutils/command/build_ext.py b/Lib/distutils/command/build_ext.py index b1d951e6f8..1ad0d5ff58 100644 --- a/Lib/distutils/command/build_ext.py +++ b/Lib/distutils/command/build_ext.py @@ -677,10 +677,10 @@ class build_ext(Command): if os.name == "os2": ext_path[len(ext_path) - 1] = ext_path[len(ext_path) - 1][:8] # extensions in debug_mode are named 'module_d.pyd' under windows - so_ext = get_config_var('SO') + ext_suffix = get_config_var('EXT_SUFFIX') if os.name == 'nt' and self.debug: - return os.path.join(*ext_path) + '_d' + so_ext - return os.path.join(*ext_path) + so_ext + return os.path.join(*ext_path) + '_d' + ext_suffix + return os.path.join(*ext_path) + ext_suffix def get_export_symbols(self, ext): """Return the list of symbols that a shared extension has to |