diff --git a/ext/libv8/builder.rb b/ext/libv8/builder.rb index bca76634..02d76160 100644 --- a/ext/libv8/builder.rb +++ b/ext/libv8/builder.rb @@ -34,10 +34,6 @@ def gyp_defines(*defines) 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' diff --git a/patches/build-standalone-static-library.patch b/patches/build-standalone-static-library.patch new file mode 100644 index 00000000..994c3224 --- /dev/null +++ b/patches/build-standalone-static-library.patch @@ -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',