Sha256: 0a803c2b49315ecd7b6c083df71d7d3762a3e9497326738e46ac70ec96d2bcdc

Contents?: true

Size: 926 Bytes

Versions: 3

Compression:

Stored size: 926 Bytes

Contents

From b2ba4c09507d83ccd7ff9e95abf5087b30445430 Mon Sep 17 00:00:00 2001
From: Petko Bordjukov <bordjukov@gmail.com>
Date: Mon, 25 Jul 2016 00:05:47 +0300
Subject: [PATCH 3/5] Use the -fPIC flag for the static library

---
 gypfiles/standalone.gypi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gypfiles/standalone.gypi b/gypfiles/standalone.gypi
index 9006c2c2f5..08eb0761c9 100644
--- a/gypfiles/standalone.gypi
+++ b/gypfiles/standalone.gypi
@@ -794,7 +794,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" or v8_target_arch=="arm64" or v8_target_arch=="arm")', {
             'cflags': [ '-fPIC', ],
           }],
           [ 'clang==0 and coverage==1', {
-- 
2.13.3

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
libv8-5.9.211.38.1 patches/0003-Use-the-fPIC-flag-for-the-static-library.patch
libv8-5.9.211.38.0 patches/0003-Use-the-fPIC-flag-for-the-static-library.patch
libv8-5.9.211.38.0beta0 patches/0003-Use-the-fPIC-flag-for-the-static-library.patch