Skip to content

Commit df82e58

Browse files
committed
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.
1 parent 31b5323 commit df82e58

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,10 @@ def build_extensions(self):
141141
(ccshared,opt) = sysconfig.get_config_vars('CCSHARED','OPT')
142142
args['compiler_so'] = compiler + ' ' + opt + ' ' + ccshared
143143
if linker_so is not None:
144-
args['linker_so'] = linker_so + ' -shared'
144+
if platform == 'darwin1':
145+
args['linker_so'] = linker_so
146+
else:
147+
args['linker_so'] = linker_so + ' -shared'
145148
self.compiler.set_executables(**args)
146149

147150
build_ext.build_extensions(self)

0 commit comments

Comments
 (0)