From f5dc4299cb95e68daa1531b8332bf3895260bd41 Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Mon, 13 Jul 2015 15:41:02 +0300 Subject: [PATCH] Instruct GYP to create a standalone static library --- ext/libv8/builder.rb | 4 ---- patches/build-standalone-static-library.patch | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 4 deletions(-) create mode 100644 patches/build-standalone-static-library.patch 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',