1
0
Fork 0
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:
Petko Bordjukov 2015-07-13 15:41:02 +03:00
parent b2ad464734
commit f5dc4299cb
2 changed files with 14 additions and 4 deletions

View file

@ -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'

View 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',