提交 c9b42fdf authored 作者: Olivier Delalleau's avatar Olivier Delalleau

Fixed crash recently introduced in MacOS, reported by Benjamin Schrauwen

上级 2848ff23
...@@ -1308,6 +1308,7 @@ def gcc_module_compile_str(module_name, src_code, location=None, include_dirs=[] ...@@ -1308,6 +1308,7 @@ def gcc_module_compile_str(module_name, src_code, location=None, include_dirs=[]
#DSE Patch 1 for supporting OSX frameworks; add -framework Python #DSE Patch 1 for supporting OSX frameworks; add -framework Python
if sys.platform=='darwin' : if sys.platform=='darwin' :
preargs.extend(['-undefined','dynamic_lookup']) preargs.extend(['-undefined','dynamic_lookup'])
python_inc = distutils.sysconfig.get_python_inc()
# link with the framework library *if specifically requested* # link with the framework library *if specifically requested*
# config.mac_framework_link is by default False, since on some mac # config.mac_framework_link is by default False, since on some mac
# installs linking with -framework causes a Bus Error # installs linking with -framework causes a Bus Error
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论