From 58f8eba372be06d20541b5e58244e92071e7417e Mon Sep 17 00:00:00 2001 From: Ronald Oussoren Date: Tue, 23 May 2006 11:47:16 +0000 Subject: [PATCH] Disable linking extensions with -lpython2.5 for darwin. This should fix bug #1487105. --- Lib/distutils/command/build_ext.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Lib/distutils/command/build_ext.py b/Lib/distutils/command/build_ext.py index fbb74768ba..00f8a6b9ae 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'): -- 2.40.0