From 26981d47289ab68b7ad5a9724e007224e6a6c6e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=20=EA=A6=AB=EA=A6=B6=20=EA=A6=8F=EA=A7=80?= =?UTF-8?q?=EA=A6=A6=EA=A6=BF=20=EA=A6=A7=20=EA=A6=AE=20=EA=A6=91=20?= =?UTF-8?q?=EA=A6=A9=20=EA=A6=AD=EA=A7=80?= Date: Sat, 6 Jun 2020 21:08:10 +0800 Subject: Convenience configure wrapper for Android ARM architectures --- configure.aarch64-linux-android.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 configure.aarch64-linux-android.sh (limited to 'configure.aarch64-linux-android.sh') diff --git a/configure.aarch64-linux-android.sh b/configure.aarch64-linux-android.sh new file mode 100755 index 0000000..1e03869 --- /dev/null +++ b/configure.aarch64-linux-android.sh @@ -0,0 +1,15 @@ +export NDK=/opt/android-ndk-r19c +export TOOLCHAIN=$NDK/toolchains/llvm/prebuilt/linux-x86_64 +export TARGET=aarch64-linux-android +export API=21 +export CC=$TOOLCHAIN/bin/$TARGET$API-clang +export AR=$TOOLCHAIN/bin/$TARGET-ar +export AS=$TOOLCHAIN/bin/$TARGET-as +export LD=$TOOLCHAIN/bin/$TARGET-ld +export RANLIB=$TOOLCHAIN/bin/$TARGET-ranlib +export STRIP=$TOOLCHAIN/bin/$TARGET-strip +export PREFIX=$TOOLCHAIN/sysroot/usr +export CPPFLAGS="$CPPFLAGS -DDEBUG -DANDROID" +export CFLAGS="$CFLAGS -g" +export LDFLAGS="$LDFLAGS -L$PREFIX/lib/$TARGET/$API" +./configure --host=$TARGET --prefix=$PREFIX --libdir=$PREFIX/lib/$TARGET/$API --disable-static -- cgit v1.2.3