summary refs log tree commit diff
path: root/pkgs/development/libraries/v8/fPIC-for-static.patch
blob: 39564772af86e62ea35eb085cd2ea181006c5bbf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/build/standalone.gypi b/build/standalone.gypi
index 7670e5b..230518c 100644
--- a/build/standalone.gypi
+++ b/build/standalone.gypi
@@ -205,7 +205,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")', {
             'cflags': [ '-fPIC', ],
           }],
         ],