mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-01 23:59:53 +00:00
Try with arm-none-linux-uclibcgnueabi
This commit is contained in:
parent
17d565e950
commit
4ae7ccff9f
@ -58,20 +58,20 @@ elif [ "$1" == "crosscompile" ]; then
|
||||
COMPILE_FOR_ANDROID=yes
|
||||
[ -z "$march" ] && march=armv6;
|
||||
[ -z "$mtune" ] && mtune=generic-armv6;
|
||||
TOOLCHAIN_PREFIX="arm-none-linux-gnueabi"
|
||||
TOOLCHAIN_PREFIX="arm-none-linux-uclibcgnueabi"
|
||||
export CC="$TOOLCHAIN_PREFIX-gcc"
|
||||
CONFIGURE_FLAGS="--host=$TOOLCHAIN_PREFIX --enable-static-link"
|
||||
[ -z "$CFLAGS" ] && CFLAGS="-mcpu=armv6 -uclibc --static";
|
||||
CFLAGS="-uclibc --static $CFLAGS";
|
||||
LDFLAGS="--static"
|
||||
echo "[INFO] Cross-compiling for Android ARMv6"
|
||||
elif [ "$2" == "android-armv7" ]; then
|
||||
COMPILE_FOR_ANDROID=yes
|
||||
[ -z "$march" ] && march=armv7-a;
|
||||
[ -z "$mtune" ] && mtune=generic-armv7-a;
|
||||
TOOLCHAIN_PREFIX="arm-none-linux-gnueabi"
|
||||
TOOLCHAIN_PREFIX="arm-none-linux-uclibcgnueabi"
|
||||
export CC="$TOOLCHAIN_PREFIX-gcc"
|
||||
CONFIGURE_FLAGS="--host=$TOOLCHAIN_PREFIX --enable-static-link"
|
||||
[ -z "$CFLAGS" ] && CFLAGS="-mcpu=armv7-a -uclibc --static";
|
||||
CFLAGS="-uclibc --static $CFLAGS";
|
||||
LDFLAGS="--static"
|
||||
echo "[INFO] Cross-compiling for Android ARMv7"
|
||||
elif [ "$2" == "rpi" ]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user