From cf58d33a830259f5749b129ab6d5282d4ee1a8e1 Mon Sep 17 00:00:00 2001 From: ignisf Date: Wed, 15 May 2013 15:41:14 +0300 Subject: [PATCH] Reintroduce the -fPIC patch for the static library --- patches/fPIC-for-static.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 patches/fPIC-for-static.patch diff --git a/patches/fPIC-for-static.patch b/patches/fPIC-for-static.patch new file mode 100644 index 0000000..00117d6 --- /dev/null +++ b/patches/fPIC-for-static.patch @@ -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', ], + }], + ],