aboutsummaryrefslogblamecommitdiffstats
path: root/community/nodejs-current/link-with-libatomic-on-mips32.patch
blob: b082c4139a8afc9e8360eec3f24d58a09ad97730 (plain) (tree)
1
2
3
4
5
6
7

                              


                                          
            
                                                        




                                          
                                         
                                                     

              
                    


                                         
                                                        



                                         


                                     
--- a/tools/v8_gypfiles/v8.gyp
+++ b/tools/v8_gypfiles/v8.gyp
@@ -1201,6 +1201,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
@@ -376,6 +376,11 @@
       'msvs_disabled_warnings!': [4244],
 
       'conditions': [
+        [ 'host_arch=="mips" or host_arch=="mipsel"', {
+          'link_settings': {
+            'libraries': [ '-latomic' ],
+          },
+        }],
         [ 'error_on_warn=="true"', {
           'cflags': ['-Werror'],
         }],