Skip to content

Commit

Permalink
Updated LuaJIT binaries to the new patched version
Browse files Browse the repository at this point in the history
The new patched version has an extra call so that you can use fake
threads.

The new build-android-ab.sh file is for me!  It's a script for making
Android LuaJIT on 32bit linux.  You need a copy of 32bit version of the
NDK.

The prebuilt_plus.zip file is prebuild versions of LuaJIT for Android
and Win32.  There is also a patch for making Gideros export LuaJIT
bytecode rather than plain Lua bytecode.
  • Loading branch information
AnthonyBall1966 committed Jun 2, 2016
1 parent 385a6ca commit 081ed9f
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions luajit/build-android-ab.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
rm -rf libs
NDK=/home/anthony/android-ndk-r9d
NDKABI=8
NDKVER=$NDK/toolchains/arm-linux-androideabi-4.6
NDKP=$NDKVER/prebuilt/linux-x86/bin/arm-linux-androideabi-
NDKF="--sysroot $NDK/platforms/android-$NDKABI/arch-arm"
NDKARCH=
make clean
make HOST_CC="gcc -m32" CROSS=$NDKP TARGET_FLAGS="$NDKF" TARGET_CFLAGS="-I../../libgvfs" TARGET_LIBS="-L../../libgvfs/libs/armeabi -lgvfs"
mkdir -p libs/armeabi
cp src/libluajit.so libs/armeabi
NDKABI=8
NDKVER=$NDK/toolchains/arm-linux-androideabi-4.6
NDKP=$NDKVER/prebuilt/linux-x86/bin/arm-linux-androideabi-
NDKF="--sysroot $NDK/platforms/android-$NDKABI/arch-arm"
NDKARCH="-march=armv7-a -mfloat-abi=softfp -Wl,--fix-cortex-a8"
make clean
make HOST_CC="gcc -m32" CROSS=$NDKP TARGET_FLAGS="$NDKF $NDKARCH" TARGET_CFLAGS="-I../../libgvfs" TARGET_LIBS="-L../../libgvfs/libs/armeabi-v7a -lgvfs"
mkdir -p libs/armeabi-v7a
cp src/libluajit.so libs/armeabi-v7a
NDKABI=14
NDKVER=$NDK/toolchains/x86-4.6
NDKP=$NDKVER/prebuilt/linux-x86/bin/i686-linux-android-
NDKF="--sysroot $NDK/platforms/android-$NDKABI/arch-x86"
NDKARCH=
make clean
make HOST_CC="gcc -m32" CROSS=$NDKP TARGET_FLAGS="$NDKF" TARGET_CFLAGS="-I../../libgvfs" TARGET_LIBS="-L../../libgvfs/libs/x86 -lgvfs"
mkdir -p libs/x86
cp src/libluajit.so libs/x86
Binary file modified luajit/prebuilt_plus.zip
Binary file not shown.

0 comments on commit 081ed9f

Please sign in to comment.