diff options
author | alpine-mips-patches <info@mobile-stream.com> | 2018-12-03 10:26:31 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2018-12-17 08:01:17 +0000 |
commit | af971ca01cc7354cfaa2f8f0afece0b5faf204bc (patch) | |
tree | 6bd579d1fcf5aeb4818c47d522ce603d05212891 /community/nodejs-current/link-with-libatomic-on-mips32.patch | |
parent | 8727ae44520c0d5792e4367256ae286e296f90cd (diff) |
community/nodejs-current: fix build on mips{el} (-latomic), disable on mips64*
Diffstat (limited to 'community/nodejs-current/link-with-libatomic-on-mips32.patch')
-rw-r--r-- | community/nodejs-current/link-with-libatomic-on-mips32.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/community/nodejs-current/link-with-libatomic-on-mips32.patch b/community/nodejs-current/link-with-libatomic-on-mips32.patch new file mode 100644 index 00000000000..62fb6fec13d --- /dev/null +++ b/community/nodejs-current/link-with-libatomic-on-mips32.patch @@ -0,0 +1,28 @@ +--- 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)' ] + }, { |