diff options
Diffstat (limited to 'main/nodejs/link-with-libatomic-on-mips32.patch')
-rw-r--r-- | main/nodejs/link-with-libatomic-on-mips32.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/main/nodejs/link-with-libatomic-on-mips32.patch b/main/nodejs/link-with-libatomic-on-mips32.patch new file mode 100644 index 0000000000..b8f6a144b7 --- /dev/null +++ b/main/nodejs/link-with-libatomic-on-mips32.patch @@ -0,0 +1,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', |