diff options
author | Tarek Ziadé <ziade.tarek@gmail.com> | 2009-02-05 22:56:14 (GMT) |
---|---|---|
committer | Tarek Ziadé <ziade.tarek@gmail.com> | 2009-02-05 22:56:14 (GMT) |
commit | 5874ef16edfa34cf6ff184e56ada8b78687b689f (patch) | |
tree | f2fddd33f1bce679dbfa04cfa1d08a42d30f9187 /Lib/distutils/command/build_ext.py | |
parent | 48f5c4eec6c85b5c91e8d45921afe8d62410239b (diff) | |
download | cpython-5874ef16edfa34cf6ff184e56ada8b78687b689f.zip cpython-5874ef16edfa34cf6ff184e56ada8b78687b689f.tar.gz cpython-5874ef16edfa34cf6ff184e56ada8b78687b689f.tar.bz2 |
Merged revisions 69316 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r69316 | tarek.ziade | 2009-02-05 23:52:52 +0100 (Thu, 05 Feb 2009) | 1 line
Fixed #5132: enable extensions to link on Solaris
........
Diffstat (limited to 'Lib/distutils/command/build_ext.py')
-rw-r--r-- | Lib/distutils/command/build_ext.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Lib/distutils/command/build_ext.py b/Lib/distutils/command/build_ext.py index 7ef5bec..b12da63 100644 --- a/Lib/distutils/command/build_ext.py +++ b/Lib/distutils/command/build_ext.py @@ -229,10 +229,12 @@ class build_ext(Command): # building python standard extensions self.library_dirs.append('.') - # for extensions under Linux with a shared Python library, + # for extensions under Linux or Solaris with a shared Python library, # Python's library directory must be appended to library_dirs - if (sys.platform.startswith('linux') or sys.platform.startswith('gnu')) \ - and sysconfig.get_config_var('Py_ENABLE_SHARED'): + 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')): if sys.executable.startswith(os.path.join(sys.exec_prefix, "bin")): # building third party extensions self.library_dirs.append(sysconfig.get_config_var('LIBDIR')) |