Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2f20dab

Browse files
committed
Do not add -shared to linker_so. Any necessary options should already be
in LDSHARED.
1 parent 8158b5a commit 2f20dab

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

setup.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,7 @@ 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-
if platform == 'darwin1':
145-
args['linker_so'] = linker_so
146-
else:
147-
args['linker_so'] = linker_so + ' -shared'
144+
args['linker_so'] = linker_so
148145
self.compiler.set_executables(**args)
149146

150147
build_ext.build_extensions(self)

0 commit comments

Comments
 (0)