aboutsummaryrefslogtreecommitdiffstats
path: root/main/nodejs/link-with-libatomic-on-mips32.patch
blob: ed200334ccce3272485b76ed1b75dd19e0ddfa38 (plain) (blame)
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/tools/v8_gypfiles/v8.gyp
+++ b/tools/v8_gypfiles/v8.gyp
@@ -1266,6 +1266,11 @@
         ['want_separate_host_toolset', {
           'toolsets': ['host', 'target'],
         }],
+        [ 'host_arch=="mips" or host_arch=="mipsel"', {
+          'link_settings': {
+            'libraries': [ '-latomic' ],
+          },
+        }],
         ['component=="shared_library"', {
           'direct_dependent_settings': {
             'defines': ['USING_V8_PLATFORM_SHARED'],
--- a/node.gyp
+++ b/node.gyp
@@ -381,6 +381,11 @@
       'msvs_disabled_warnings!': [4244],
 
       'conditions': [
+        [ 'host_arch=="mips" or host_arch=="mipsel"', {
+          'link_settings': {
+            'libraries': [ '-latomic' ],
+          },
+        }],
         [ 'error_on_warn=="true"', {
           'cflags': ['-Werror'],
           'xcode_settings': {