libluajit: Switch to 2.1-beta1
This brings aarch64 support.
This commit is contained in:
parent
716a79bea0
commit
f4bfaebc76
@ -1,20 +1,22 @@
|
|||||||
TERMUX_PKG_HOMEPAGE=http://luajit.org/
|
TERMUX_PKG_HOMEPAGE=http://luajit.org/
|
||||||
TERMUX_PKG_DESCRIPTION="Just-In-Time Compiler for Lua"
|
TERMUX_PKG_DESCRIPTION="Just-In-Time Compiler for Lua"
|
||||||
TERMUX_PKG_VERSION=2.0.4
|
TERMUX_PKG_VERSION=2.0.90
|
||||||
TERMUX_PKG_BUILD_REVISION=1
|
TERMUX_PKG_SRCURL=http://luajit.org/download/LuaJIT-2.1.0-beta1.tar.gz
|
||||||
TERMUX_PKG_SRCURL=http://luajit.org/download/LuaJIT-${TERMUX_PKG_VERSION}.tar.gz
|
|
||||||
TERMUX_PKG_EXTRA_MAKE_ARGS="amalg PREFIX=$TERMUX_PREFIX"
|
TERMUX_PKG_EXTRA_MAKE_ARGS="amalg PREFIX=$TERMUX_PREFIX"
|
||||||
TERMUX_PKG_BUILD_IN_SRC=yes
|
TERMUX_PKG_BUILD_IN_SRC=yes
|
||||||
|
|
||||||
# luajit wants same pointer size for host and target build
|
# luajit wants same pointer size for host and target build
|
||||||
export HOST_CC="gcc"
|
export HOST_CC="gcc"
|
||||||
if [ `uname` = "Linux" ]; then
|
if [ $TERMUX_ARCH_BITS = "32" ]; then
|
||||||
# NOTE: "apt install libc6-dev-i386" for 32-bit headers
|
if [ `uname` = "Linux" ]; then
|
||||||
export HOST_CFLAGS="-m32" # -arch i386"
|
# NOTE: "apt install libc6-dev-i386" for 32-bit headers
|
||||||
export HOST_LDFLAGS="-m32" # arch i386"
|
export HOST_CFLAGS="-m32" # -arch i386"
|
||||||
elif [ `uname` = "Darwin" ]; then
|
export HOST_LDFLAGS="-m32" # arch i386"
|
||||||
export HOST_CFLAGS="-m32 -arch i386"
|
|
||||||
export HOST_LDFLAGS="-arch i386"
|
elif [ `uname` = "Darwin" ]; then
|
||||||
|
export HOST_CFLAGS="-m32 -arch i386"
|
||||||
|
export HOST_LDFLAGS="-arch i386"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
export CROSS=${TERMUX_HOST_PLATFORM}-
|
export CROSS=${TERMUX_HOST_PLATFORM}-
|
||||||
export TARGET_FLAGS="$CFLAGS $CPPFLAGS $LDFLAGS"
|
export TARGET_FLAGS="$CFLAGS $CPPFLAGS $LDFLAGS"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user