--- 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)' ] }, {