summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-rw-r--r--build/common.gypi6
1 files changed, 6 insertions, 0 deletions
diff --git a/build/common.gypi b/build/common.gypi
index ad2908a..e90321b 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -684,6 +684,12 @@
# When building with shared libraries, remove the visiblity-hiding
# flag.
'cflags!': [ '-fvisibility=hidden' ],
+ 'conditions': [
+ ['target_arch=="x64"', {
+ # Shared libraries need -fPIC on x86-64
+ 'cflags': ['-fPIC']
+ }]
+ ],
}],
],
},