nodejs: do not build for armv7 on armv6. fixes #2299
This commit is contained in:
parent
686b7bff71
commit
1870702faf
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'nodejs'
|
# Template file for 'nodejs'
|
||||||
pkgname=nodejs
|
pkgname=nodejs
|
||||||
version=0.12.7
|
version=0.12.7
|
||||||
revision=2
|
revision=3
|
||||||
wrksrc=node-v${version}
|
wrksrc=node-v${version}
|
||||||
hostmakedepends="pkg-config python"
|
hostmakedepends="pkg-config python"
|
||||||
makedepends="zlib-devel python-devel
|
makedepends="zlib-devel python-devel
|
||||||
|
@ -27,7 +27,12 @@ do_configure() {
|
||||||
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*) _args="--dest-cpu=arm --without-snapshot" ;;
|
armv6*)
|
||||||
|
GYPFLAGS="-Darm_thumb -Darm_float_abi=hard -Darm_version=6 -Darm_fpu=vfpv2"
|
||||||
|
_args="--dest-cpu=arm --without-snapshot" ;;
|
||||||
|
armv7*)
|
||||||
|
GYPFLAGS="-Darm_thumb -Darm_float_abi=hard -Darm_version=7 -Darm_fpu=vfpv3-d16"
|
||||||
|
_args="--dest-cpu=arm --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
|
||||||
fi
|
fi
|
||||||
|
@ -35,6 +40,12 @@ do_configure() {
|
||||||
$(vopt_if http_parser --shared-http-parser) \
|
$(vopt_if http_parser --shared-http-parser) \
|
||||||
$(vopt_if ssl --openssl-use-sys) \
|
$(vopt_if ssl --openssl-use-sys) \
|
||||||
$(vopt_if libuv --shared-libuv) ${_args}
|
$(vopt_if libuv --shared-libuv) ${_args}
|
||||||
|
|
||||||
|
if [ "$CROSS_BUILD" ]; then
|
||||||
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
|
armv6*) sed -i 's/vfpv3/vfp/' config.gypi ;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
do_build() {
|
do_build() {
|
||||||
if [ "$CROSS_BUILD" ]; then
|
if [ "$CROSS_BUILD" ]; then
|
||||||
|
|
Loading…
Reference in New Issue