提交 6f317f80 authored 作者: eckdoug@waits.local's avatar eckdoug@waits.local

More conservative change only effects OS X

上级 066c2edb
...@@ -503,9 +503,7 @@ def gcc_module_compile_str(module_name, src_code, location=None, include_dirs=[] ...@@ -503,9 +503,7 @@ def gcc_module_compile_str(module_name, src_code, location=None, include_dirs=[]
preargs.append('-fPIC') preargs.append('-fPIC')
#DSE allow for undefined symbols
if sys.platform=='darwin' :
preargs.extend(['-undefined','dynamic_lookup'])
no_opt = False no_opt = False
...@@ -527,8 +525,12 @@ def gcc_module_compile_str(module_name, src_code, location=None, include_dirs=[] ...@@ -527,8 +525,12 @@ def gcc_module_compile_str(module_name, src_code, location=None, include_dirs=[]
#we will not link against -lpython2.5. Linux doesn't mind the undefined symbols. Neither does OS X if we use -undefined dynamic_lookup. #we will not link against -lpython2.5. Linux doesn't mind the undefined symbols. Neither does OS X if we use -undefined dynamic_lookup.
#This makes it easier to avoid problems with frameworks #DSE This makes it easier to avoid problems with frameworks
#libs = [libname] + libs if sys.platform=='darwin' :
preargs.extend(['-undefined','dynamic_lookup'])
else :
#DSE I don't think it's necessary to ever link against -lpython2.x but i left it in for non-osx
libs = [libname] + libs
workdir = location workdir = location
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论