]> granicus.if.org Git - python/commitdiff
Do not add -shared to linker_so. Any necessary options should already be
authorMartin v. Löwis <martin@v.loewis.de>
Mon, 8 Oct 2001 13:18:37 +0000 (13:18 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Mon, 8 Oct 2001 13:18:37 +0000 (13:18 +0000)
in LDSHARED.

setup.py

index 36d63d20a4814ecf4606b46e06bd21fd95292983..30c6852cb3f0855bce0358e80cb2149df6ee5310 100644 (file)
--- 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)