nodejs-lts: fix on ppc32
[ci skip]
This commit is contained in:
parent
c105293cca
commit
9c39d98a60
2 changed files with 31 additions and 0 deletions
|
@ -1,3 +1,28 @@
|
|||
--- configure.py
|
||||
+++ configure.py
|
||||
@@ -848,7 +848,7 @@ def host_arch_cc():
|
||||
'__MIPSEL__' : 'mipsel',
|
||||
'__mips__' : 'mips',
|
||||
'__PPC64__' : 'ppc64',
|
||||
- '__PPC__' : 'ppc64',
|
||||
+ '__PPC__' : 'ppc',
|
||||
'__x86_64__' : 'x64',
|
||||
'__s390__' : 's390',
|
||||
'__s390x__' : 's390x',
|
||||
--- node.gyp
|
||||
+++ node.gyp
|
||||
@@ -479,6 +479,11 @@
|
||||
'msvs_disabled_warnings!': [4244],
|
||||
|
||||
'conditions': [
|
||||
+ [ 'host_arch=="mips" or host_arch=="mipsel" or host_arch=="ppc"', {
|
||||
+ 'link_settings': {
|
||||
+ 'libraries': [ '-latomic' ],
|
||||
+ },
|
||||
+ }],
|
||||
[ 'node_code_cache_path!=""', {
|
||||
'sources': [ '<(node_code_cache_path)' ]
|
||||
}, {
|
||||
--- deps/v8/src/libsampler/sampler.cc
|
||||
+++ deps/v8/src/libsampler/sampler.cc
|
||||
@@ -418,9 +418,15 @@ void SignalHandler::FillRegisterState(void* context, RegisterState* state) {
|
||||
|
|
|
@ -36,6 +36,12 @@ if [ "$XBPS_WORDSIZE" -ne "$XBPS_TARGET_WORDSIZE" ]; then
|
|||
nocross="host and target must have the same pointer size"
|
||||
fi
|
||||
|
||||
case "$XBPS_MACHINE" in
|
||||
ppc64*) ;;
|
||||
mips*|ppc*) hostmakedepends+=" libatomic-devel" ;;
|
||||
*) ;;
|
||||
esac
|
||||
|
||||
do_configure() {
|
||||
local _args
|
||||
|
||||
|
|
Loading…
Reference in a new issue