]> granicus.if.org Git - python/commitdiff
On OSX we should not pass the -shared option to ld: it make the build
authorJack Jansen <jack.jansen@cwi.nl>
Wed, 15 Aug 2001 13:17:45 +0000 (13:17 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Wed, 15 Aug 2001 13:17:45 +0000 (13:17 +0000)
of audioop and cmath fail. Removing it seems to have no adverse consequences.

Closes bug #450510.

setup.py

index 6de7aae76c0a507b4714c50e78b36020ecf8528f..e717411c0e090b7e8d7d18dccbddb29dd2f25bf0 100644 (file)
--- a/setup.py
+++ b/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)