LuaJIT: fix crosscompiling
This commit is contained in:
parent
97eec970a9
commit
2fa4346699
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue