From af971ca01cc7354cfaa2f8f0afece0b5faf204bc Mon Sep 17 00:00:00 2001 From: alpine-mips-patches Date: Mon, 3 Dec 2018 10:26:31 +0000 Subject: community/nodejs-current: fix build on mips{el} (-latomic), disable on mips64* --- .../link-with-libatomic-on-mips32.patch | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 community/nodejs-current/link-with-libatomic-on-mips32.patch (limited to 'community/nodejs-current/link-with-libatomic-on-mips32.patch') 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 0000000000..62fb6fec13 --- /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)' ] + }, { -- cgit v1.2.3