aports/community/nodejs-current/link-with-libatomic-on-mips32.patch
alpine-mips-patches 3f3385cfb7 community/nodejs-current: pass -latomic depending on host_arch
Check host_arch not target_arch to decide whether -latomic is necessary.
2018-12-19 12:35:52 +00:00

29 lines
773 B
Diff

--- a/deps/v8/gypfiles/v8.gyp
+++ b/deps/v8/gypfiles/v8.gyp
@@ -2012,6 +2012,11 @@
}],
],
'conditions': [
+ [ 'host_arch=="mips" or host_arch=="mipsel"', {
+ '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': [
+ [ 'host_arch=="mips" or host_arch=="mipsel"', {
+ 'link_settings': {
+ 'libraries': [ '-latomic' ],
+ },
+ }],
[ 'node_code_cache_path!=""', {
'sources': [ '<(node_code_cache_path)' ]
}, {