mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-14 11:03:49 +02:00
LuaJIT: unbreak cross from x86_64.
This commit is contained in:
parent
a22103f8ec
commit
4970e6a8fb
1 changed files with 11 additions and 6 deletions
|
@ -9,16 +9,21 @@ license="MIT"
|
||||||
distfiles="http://luajit.org/download/$pkgname-$version.tar.gz"
|
distfiles="http://luajit.org/download/$pkgname-$version.tar.gz"
|
||||||
checksum=620fa4eb12375021bef6e4f237cbd2dd5d49e56beb414bee052c746beef1807d
|
checksum=620fa4eb12375021bef6e4f237cbd2dd5d49e56beb414bee052c746beef1807d
|
||||||
|
|
||||||
if [ "$XBPS_MACHINE" = "x86_64" -a "$CROSS_BUILD" ]; then
|
if [ "$XBPS_MACHINE" = "x86_64" ]; then
|
||||||
hostmakedepends="cross-i686-pc-linux-gnu glibc-32bit"
|
hostmakedepends="gcc-multilib"
|
||||||
_cross_cc="HOST_CC=i686-pc-linux-gnu-gcc"
|
|
||||||
else
|
|
||||||
_cross_cc="HOST_CC=cc"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
do_build() {
|
do_build() {
|
||||||
local _cflags=$CFLAGS
|
local _cflags=$CFLAGS
|
||||||
local _ldflags=$LDFLAGS
|
local _ldflags=$LDFLAGS
|
||||||
|
local _cross_cc
|
||||||
|
|
||||||
|
if [ "$XBPS_MACHINE" = "x86_64" ]; then
|
||||||
|
_cross_cc="cc -m32"
|
||||||
|
else
|
||||||
|
_cross_cc=cc
|
||||||
|
fi
|
||||||
|
|
||||||
unset CFLAGS LDFLAGS
|
unset CFLAGS LDFLAGS
|
||||||
make ${makejobs} \
|
make ${makejobs} \
|
||||||
PREFIX=/usr \
|
PREFIX=/usr \
|
||||||
|
@ -26,7 +31,7 @@ do_build() {
|
||||||
TARGET_CFLAGS="$_cflags" \
|
TARGET_CFLAGS="$_cflags" \
|
||||||
TARGET_LDFLAGS="$_ldflags" \
|
TARGET_LDFLAGS="$_ldflags" \
|
||||||
TARGET_STRIP=: \
|
TARGET_STRIP=: \
|
||||||
$_cross_cc
|
HOST_CC="$_cross_cc"
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue