LuaJIT: fix crosscompiling

This commit is contained in:
Enno Boland 2014-03-16 23:24:05 +01:00
parent 97eec970a9
commit 2fa4346699
1 changed files with 13 additions and 1 deletions

View File

@ -8,9 +8,21 @@ homepage="http://www.luajit.org"
license="MIT"
distfiles="http://luajit.org/download/$pkgname-$version.tar.gz"
checksum=55be6cb2d101ed38acca32c5b1f99ae345904b365b642203194c585d27bebd79
if [ "$XBPS_MACHINE" = "x86_64" -a "$CROSS_BUILD" ]; then
hostmakedepends="cross-i686-pc-linux-gnu glibc-32bit"
fi
do_build() {
make PREFIX=/usr ${makejobs}
local _cflags=$CFLAGS
local _ldflags=$LDFLAGS
unset CFLAGS LDFLAGS
make ${makejobs} \
PREFIX=/usr \
CC=${CC} \
HOST_CC="i686-pc-linux-gnu-gcc" \
TARGET_CFLAGS="$_cflags" \
TARGET_LDFLAGS="$_ldflags" \
TARGET_STRIP=:
}
do_install() {