aports/main/nodejs/link-with-libatomic-on-mips32.patch
alpine-mips-patches c21c51817e main/nodejs: pass -latomic depending on host_arch
Check host_arch not target_arch to decide whether -latomic is necessary.
2018-12-18 14:34:33 +00:00

15 lines
381 B
Diff

--- a/node.gyp
+++ b/node.gyp
@@ -478,6 +478,11 @@
'msvs_disabled_warnings!': [4244],
'conditions': [
+ [ 'host_arch=="mips" or host_arch=="mipsel"', {
+ 'link_settings': {
+ 'libraries': [ '-latomic' ],
+ },
+ }],
[ 'node_code_cache_path!=""', {
'sources': [ '<(node_code_cache_path)' ]
}, {