nodejs: set nocross for 32-bit target and 64-bit host

This commit is contained in:
maxice8 2019-01-06 19:20:08 -02:00 committed by maxice8
parent 1b31cf0830
commit 55ace58907

View file

@ -32,13 +32,20 @@ replaces="iojs>=0"
conflicts="nodejs-lts"
provides="nodejs-runtime-0_1"
case "$XBPS_TARGET_MACHINE" in
arm*)
case "$XBPS_MACHINE" in
x86_64*|aarch64*)
nocross="Can't cross-compile to 32bit-host from 64bit-host";;
esac ;;
esac
do_configure() {
local _args
export LD="$CXX"
if [ "$CROSS_BUILD" ]; then
case "$XBPS_TARGET_MACHINE" in
arm*) msg_error "Can only build Node for ARMv[5-7] from a 32-bit host.\n" ;;
aarch64*) _args="--dest-cpu=arm64 --without-snapshot" ;;
*) msg_error "$pkgver: cannot be cross compiled for ${XBPS_TARGET_MACHINE}.\n" ;;
esac