summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorRonald Oussoren <ronaldoussoren@mac.com>2006-05-23 11:47:16 (GMT)
committerRonald Oussoren <ronaldoussoren@mac.com>2006-05-23 11:47:16 (GMT)
commit58f8eba372be06d20541b5e58244e92071e7417e (patch)
treeb50830e06bd9d362762af4e65f908581c943d0ff /Lib
parent658d5133285ccf32184ad8cc2899dfe3440aea2d (diff)
downloadcpython-58f8eba372be06d20541b5e58244e92071e7417e.zip
cpython-58f8eba372be06d20541b5e58244e92071e7417e.tar.gz
cpython-58f8eba372be06d20541b5e58244e92071e7417e.tar.bz2
Disable linking extensions with -lpython2.5 for darwin. This should fix bug
#1487105.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/distutils/command/build_ext.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/distutils/command/build_ext.py b/Lib/distutils/command/build_ext.py
index fbb7476..00f8a6b 100644
--- a/Lib/distutils/command/build_ext.py
+++ b/Lib/distutils/command/build_ext.py
@@ -689,6 +689,11 @@ class build_ext (Command):
# don't extend ext.libraries, it may be shared with other
# extensions, it is a reference to the original list
return ext.libraries + [pythonlib, "m"] + extra
+
+ elif sys.platform == 'darwin':
+ # Don't use the default code below
+ return ext.libraries
+
else:
from distutils import sysconfig
if sysconfig.get_config_var('Py_ENABLE_SHARED'):