summaryrefslogtreecommitdiff
path: root/gyp/common.gypi
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-10-27 16:47:47 -0400
committerKonstantin Käfer <mail@kkaefer.com>2014-10-27 16:47:47 -0400
commit602b9da9928e10b55489d2a5c9599107b32dc90a (patch)
treee48f5cec9bf09b4e454dc2af3eb0b7288616ab0c /gyp/common.gypi
parentc3f3b9ddd52a3f1540eb6eb6711caca7efc4a8fb (diff)
downloadqtlocation-mapboxgl-602b9da9928e10b55489d2a5c9599107b32dc90a.tar.gz
add -fPIC for static libraries
Diffstat (limited to 'gyp/common.gypi')
-rw-r--r--gyp/common.gypi13
1 files changed, 13 insertions, 0 deletions
diff --git a/gyp/common.gypi b/gyp/common.gypi
index 6d6b0e6671..163f2ce0a7 100644
--- a/gyp/common.gypi
+++ b/gyp/common.gypi
@@ -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': {