aboutsummaryrefslogtreecommitdiffstats
path: root/main/nodejs/link-with-libatomic-on-mips32.patch
blob: b8f6a144b77f0a8a91fc5647b2c6c5c745584038 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- a/node.gyp
+++ b/node.gyp
@@ -247,6 +247,9 @@
       'msvs_disabled_warnings!': [4244],
 
       'conditions': [
+        [ '(target_arch=="mips" or target_arch=="mipsel") and mips_arch_variant!="r6"', {
+          'libraries': [ '-latomic' ],
+        }],
         [ 'node_intermediate_lib_type=="static_library" and '
             'node_shared=="true" and OS=="aix"', {
           # For AIX, shared lib is linked by static lib and .exp. In the
@@ -934,6 +937,9 @@
       ],
 
       'conditions': [
+        [ '(target_arch=="mips" or target_arch=="mipsel") and mips_arch_variant!="r6"', {
+          'libraries': [ '-latomic' ],
+        }],
         [ 'node_use_openssl=="true"', {
           'defines': [
             'HAVE_OPENSSL=1',