add -fPIC for static libraries

This commit is contained in:
Konstantin Käfer
2014-10-27 16:47:47 -04:00
parent c3f3b9ddd5
commit 602b9da992

View File

@@ -24,6 +24,19 @@
],
}],
],
'target_conditions': [
['_type == "static_library"', {
'conditions': [
['OS=="mac"', {
'xcode_settings': {
'OTHER_CPLUSPLUSFLAGS': [ '-fPIC' ],
},
}, {
'cflags_cc': [ '-fPIC' ],
}]
],
}],
],
'cflags_cc': [ '-std=c++11', '-Werror', '-Wall', '-Wextra', '-Wshadow', '-frtti', '-fexceptions' ],
'configurations': {
'Debug': {