LuaJIT: fix native build

This commit is contained in:
Enno Boland 2014-03-16 23:30:32 +01:00
parent 3e4f49bfdc
commit c586a2ef80

View file

@ -10,6 +10,7 @@ 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"
_cross_cc="HOST_CC=i686-pc-linux-gnu-gcc"
fi
do_build() {
@ -19,10 +20,10 @@ do_build() {
make ${makejobs} \
PREFIX=/usr \
CC=${CC} \
HOST_CC="i686-pc-linux-gnu-gcc" \
TARGET_CFLAGS="$_cflags" \
TARGET_LDFLAGS="$_ldflags" \
TARGET_STRIP=:
TARGET_STRIP=: \
$_cross_cc
}
do_install() {