From: Jack Jansen <jack.jansen@cwi.nl>
Date: Wed, 15 Aug 2001 13:17:45 +0000 (+0000)
Subject: On OSX we should not pass the -shared option to ld: it make the build
X-Git-Tag: v2.2a3~543
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=df82e58cd516ea1dcd9d0bfc5622a5239af0392d;p=python

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.
---

diff --git a/setup.py b/setup.py
index 6de7aae76c..e717411c0e 100644
--- 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)