From: Martin v. Löwis Date: Mon, 8 Oct 2001 13:18:37 +0000 (+0000) Subject: Do not add -shared to linker_so. Any necessary options should already be X-Git-Tag: v2.2.1c1~1401 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2f20dab9c1f2e123b7d8cc17393d0504825d439a;p=python Do not add -shared to linker_so. Any necessary options should already be in LDSHARED. --- diff --git a/setup.py b/setup.py index 36d63d20a4..30c6852cb3 100644 --- a/setup.py +++ b/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)