Mercurial > cpython-lru_cache-weakref
diff Lib/distutils/command/build_ext.py @ 51352:466eb9784e8b legacy-trunk
Fixed #5132: enable extensions to link on Solaris
| author | Tarek Ziadé <ziade.tarek@gmail.com> |
|---|---|
| date | Thu, 05 Feb 2009 22:52:52 +0000 |
| parents | a5229237eb50 |
| children | 8b4da1f49384 |
line wrap: on
line diff
--- a/Lib/distutils/command/build_ext.py Thu Feb 05 22:14:04 2009 +0000 +++ b/Lib/distutils/command/build_ext.py Thu Feb 05 22:52:52 2009 +0000 @@ -231,10 +231,12 @@ # 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'))
