mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-13 18:43:51 +02:00
nodejs: set nocross for 32-bit target and 64-bit host
This commit is contained in:
parent
1b31cf0830
commit
55ace58907
1 changed files with 8 additions and 1 deletions
|
@ -32,13 +32,20 @@ replaces="iojs>=0"
|
||||||
conflicts="nodejs-lts"
|
conflicts="nodejs-lts"
|
||||||
provides="nodejs-runtime-0_1"
|
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() {
|
do_configure() {
|
||||||
local _args
|
local _args
|
||||||
|
|
||||||
export LD="$CXX"
|
export LD="$CXX"
|
||||||
if [ "$CROSS_BUILD" ]; then
|
if [ "$CROSS_BUILD" ]; then
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
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" ;;
|
aarch64*) _args="--dest-cpu=arm64 --without-snapshot" ;;
|
||||||
*) msg_error "$pkgver: cannot be cross compiled for ${XBPS_TARGET_MACHINE}.\n" ;;
|
*) msg_error "$pkgver: cannot be cross compiled for ${XBPS_TARGET_MACHINE}.\n" ;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Add table
Reference in a new issue