mirror of
https://github.com/rubyjs/libv8
synced 2023-03-27 23:21:48 -04:00
Instruct GYP to create a standalone static library
This commit is contained in:
parent
b2ad464734
commit
f5dc4299cb
2 changed files with 14 additions and 4 deletions
|
@ -34,10 +34,6 @@ module Libv8
|
|||
end
|
||||
|
||||
def make_flags(*flags)
|
||||
# Fix Malformed archive issue caused by GYP creating thin archives by
|
||||
# default.
|
||||
flags << "standalone_static_library=1"
|
||||
|
||||
# Disable i18n
|
||||
flags << 'i18nsupport=off'
|
||||
|
||||
|
|
14
patches/build-standalone-static-library.patch
Normal file
14
patches/build-standalone-static-library.patch
Normal file
|
@ -0,0 +1,14 @@
|
|||
diff --git a/build/standalone.gypi b/build/standalone.gypi
|
||||
index b6519c4..ef9e7c5 100644
|
||||
--- a/build/standalone.gypi
|
||||
+++ b/build/standalone.gypi
|
||||
@@ -373,6 +373,9 @@
|
||||
}],
|
||||
],
|
||||
'target_conditions': [
|
||||
+ ['_type=="static_library"', {
|
||||
+ 'standalone_static_library': 1,
|
||||
+ }],
|
||||
['v8_code == 0', {
|
||||
'defines!': [
|
||||
'DEBUG',
|
Loading…
Add table
Reference in a new issue