mirror of
https://github.com/python/cpython.git
synced 2025-11-02 19:12:55 +00:00
Fix bug #437487: "2.1 build on Solaris fails if CC is set"
by adding the contents of CCSHARED to the compiler specified by CC
This commit is contained in:
parent
3c29602d74
commit
9eb27a89d8
1 changed files with 2 additions and 1 deletions
3
setup.py
3
setup.py
|
|
@ -116,7 +116,8 @@ class PyBuildExt(build_ext):
|
||||||
# unfortunately, distutils doesn't let us provide separate C and C++
|
# unfortunately, distutils doesn't let us provide separate C and C++
|
||||||
# compilers
|
# compilers
|
||||||
if compiler is not None:
|
if compiler is not None:
|
||||||
args['compiler_so'] = compiler
|
(ccshared,) = sysconfig.get_config_vars('CCSHARED')
|
||||||
|
args['compiler_so'] = compiler + ' ' + ccshared
|
||||||
if linker_so is not None:
|
if linker_so is not None:
|
||||||
args['linker_so'] = linker_so + ' -shared'
|
args['linker_so'] = linker_so + ' -shared'
|
||||||
self.compiler.set_executables(**args)
|
self.compiler.set_executables(**args)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue