mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Do not add -shared to linker_so. Any necessary options should already be
in LDSHARED.
This commit is contained in:
parent
8158b5ad09
commit
2f20dab9c1
1 changed files with 1 additions and 4 deletions
5
setup.py
5
setup.py
|
@ -141,10 +141,7 @@ class PyBuildExt(build_ext):
|
|||
(ccshared,opt) = sysconfig.get_config_vars('CCSHARED','OPT')
|
||||
args['compiler_so'] = compiler + ' ' + opt + ' ' + ccshared
|
||||
if linker_so is not None:
|
||||
if platform == 'darwin1':
|
||||
args['linker_so'] = linker_so
|
||||
else:
|
||||
args['linker_so'] = linker_so + ' -shared'
|
||||
args['linker_so'] = linker_so
|
||||
self.compiler.set_executables(**args)
|
||||
|
||||
build_ext.build_extensions(self)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue