提交 bbc35146 authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo

Add `-fPIC` in `cflags` to compile in x86-64 (fixes #315)

上级 72b28e10
...@@ -21,12 +21,12 @@ ...@@ -21,12 +21,12 @@
{ {
'Release': 'Release':
{ {
'cflags': [ '-g', '-Wno-unknown-warning-option' ] 'cflags': [ '-g', '-Wno-unknown-warning-option', '-fPIC' ]
}, },
'Debug': 'Debug':
{ {
'defines': [ 'DEBUG', 'MS_LOG_TRACE', 'MS_LOG_FILE_LINE' ], 'defines': [ 'DEBUG', 'MS_LOG_TRACE', 'MS_LOG_FILE_LINE' ],
'cflags': [ '-g', '-O0', '-fwrapv', '-Wno-parentheses-equality', '-Wno-unknown-warning-option' ], 'cflags': [ '-g', '-O0', '-fwrapv', '-Wno-parentheses-equality', '-Wno-unknown-warning-option', '-fPIC' ],
'xcode_settings': 'xcode_settings':
{ {
'GCC_OPTIMIZATION_LEVEL': '0' 'GCC_OPTIMIZATION_LEVEL': '0'
...@@ -42,7 +42,8 @@ ...@@ -42,7 +42,8 @@
'OTHER_CFLAGS': 'OTHER_CFLAGS':
[ [
'-fstrict-aliasing', '-fstrict-aliasing',
'-g' '-g',
'-fPIC'
], ],
'WARNING_CFLAGS': 'WARNING_CFLAGS':
[ [
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论