mozjs17: fix cross build

closes #3072
This commit is contained in:
Jürgen Buchmüller 2015-11-29 00:40:28 +01:00
parent 48a571834a
commit 7facecd845

View file

@ -1,7 +1,7 @@
# Template file for 'mozjs17'
pkgname=mozjs17
version=17.0.0
revision=5
revision=6
wrksrc="mozjs${version}"
build_wrksrc="js/src"
build_style=gnu-configure
@ -14,12 +14,15 @@ maintainer="Juan RP <xtraeme@voidlinux.eu>"
distfiles="${MOZILLA_SITE}/js/mozjs${version}.tar.gz"
checksum=321e964fe9386785d3bf80870640f2fa1c683e32fe988eeb201b04471c172fba
CXXFLAGS="-Wno-unused-local-typedefs"
do_configure() {
local _args
if [ "$CROSS_BUILD" ]; then
export HOST_CFLAGS="-Os"
export HOST_CXXFLAGS="-Os"
export HOST_LDFLAGS="-s"
_args+=" --target=$XBPS_CROSS_TRIPLET"
fi