Disable linking extensions with -lpython2.5 for darwin. This should fix bug

#1487105.
This commit is contained in:
Ronald Oussoren 2006-05-23 11:47:16 +00:00
parent 658d513328
commit 58f8eba372
1 changed files with 5 additions and 0 deletions

View File

@ -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'):