aboutsummaryrefslogtreecommitdiffstats
path: root/community/nodejs-current/link-with-libatomic-on-mips32.patch
blob: 62fb6fec13dadd127504d48ce541f743c50fe40e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--- a/deps/v8/gypfiles/v8.gyp
+++ b/deps/v8/gypfiles/v8.gyp
@@ -2012,6 +2012,11 @@
         }],
       ],
       'conditions': [
+        [ '(target_arch=="mips" or target_arch=="mipsel") and mips_arch_variant!="r6"', {
+          'link_settings': {
+            'libraries': [ '-latomic' ],
+          },
+        }],
         ['component=="shared_library"', {
           'defines': [
             'BUILDING_V8_BASE_SHARED',
--- a/node.gyp
+++ b/node.gyp
@@ -479,6 +479,11 @@
       'msvs_disabled_warnings!': [4244],
 
       'conditions': [
+        [ '(target_arch=="mips" or target_arch=="mipsel") and mips_arch_variant!="r6"', {
+          'link_settings': {
+            'libraries': [ '-latomic' ],
+          },
+        }],
         [ 'node_code_cache_path!=""', {
           'sources': [ '<(node_code_cache_path)' ]
         }, {