Use Python rather than Python.framework for linking

This commit is contained in:
Kovid Goyal 2017-01-08 10:30:01 +05:30
parent 195b2c09de
commit 0cd0a9f778

View File

@ -84,7 +84,7 @@ def init_env(debug=False, asan=False):
except ValueError:
fd = sysconfig.get_config_var('LIBDEST')
fd = fd[:fd.index('/Python.framework')]
pylib = ['-F', fd, '-framework', 'Python.framework']
pylib = ['-F' + fd, '-framework', 'Python']
else:
lib = sysconfig.get_config_var('LDLIBRARY')
if lib.startswith('lib'):