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

13 lines
509 B
Diff

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', ],
}],
],