mirror of
https://github.com/python/cpython.git
synced 2025-09-02 15:07:53 +00:00
On OSX we should not pass the -shared option to ld: it make the build
of audioop and cmath fail. Removing it seems to have no adverse consequences. Closes bug #450510.
This commit is contained in:
parent
31b5323c84
commit
df82e58cd5
1 changed files with 4 additions and 1 deletions
5
setup.py
5
setup.py
|
@ -141,7 +141,10 @@ class PyBuildExt(build_ext):
|
|||
(ccshared,opt) = sysconfig.get_config_vars('CCSHARED','OPT')
|
||||
args['compiler_so'] = compiler + ' ' + opt + ' ' + ccshared
|
||||
if linker_so is not None:
|
||||
args['linker_so'] = linker_so + ' -shared'
|
||||
if platform == 'darwin1':
|
||||
args['linker_so'] = linker_so
|
||||
else:
|
||||
args['linker_so'] = linker_so + ' -shared'
|
||||
self.compiler.set_executables(**args)
|
||||
|
||||
build_ext.build_extensions(self)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue