1
0
Fork 0
mirror of https://github.com/rubyjs/libv8 synced 2023-03-27 23:21:48 -04:00

Reintroduce the -fPIC patch for the static library

This commit is contained in:
ignisf 2013-05-15 15:41:14 +03:00
parent 559f50efeb
commit cf58d33a83

View file

@ -0,0 +1,13 @@
diff --git a/build/standalone.gypi b/build/standalone.gypi
index 125c5bf..71641a3 100644
--- a/build/standalone.gypi
+++ b/build/standalone.gypi
@@ -107,7 +107,7 @@
[ 'visibility=="hidden" and v8_enable_backtrace==0', {
'cflags': [ '-fvisibility=hidden' ],
}],
- [ 'component=="shared_library"', {
+ [ 'component=="shared_library" or component=="static_library" and v8_target_arch=="x64"', {
'cflags': [ '-fPIC', ],
}],
],