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:
parent
559f50efeb
commit
cf58d33a83
1 changed files with 13 additions and 0 deletions
13
patches/fPIC-for-static.patch
Normal file
13
patches/fPIC-for-static.patch
Normal 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', ],
|
||||
}],
|
||||
],
|
Loading…
Reference in a new issue