summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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': {