summaryrefslogtreecommitdiff
path: root/arm-linux-androideabi-configure
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-06-04 14:32:25 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-06-04 14:32:25 +0800
commit4d76449e7f45d125b8427e63e06d733ee73a84c4 (patch)
tree4f7eaa14aaeb82957e931f547c409e9f4a22b38e /arm-linux-androideabi-configure
parent4195a7f93387a60fb3c8a37d7a14189728a57e7b (diff)
Android configure wrappers
Diffstat (limited to 'arm-linux-androideabi-configure')
-rwxr-xr-xarm-linux-androideabi-configure10
1 files changed, 10 insertions, 0 deletions
diff --git a/arm-linux-androideabi-configure b/arm-linux-androideabi-configure
new file mode 100755
index 0000000..20d62ec
--- /dev/null
+++ b/arm-linux-androideabi-configure
@@ -0,0 +1,10 @@
+#!/bin/sh
+export TOOLCHAIN=$ANDROID_NDK_ROOT/toolchains/llvm/prebuilt/linux-x86_64
+export TARGET=armv7a-linux-androideabi
+export API=16
+export CC=$TOOLCHAIN/bin/$TARGET$API-clang
+export TARGET=arm-linux-androideabi
+export PREFIX=$TOOLCHAIN/sysroot/usr
+export CPPFLAGS="$CPPFLAGS -DDEBUG"
+export CFLAGS="$CFLAGS -g"
+./configure --host=$TARGET --prefix=$PREFIX --libdir=$PREFIX/lib/$TARGET/$API --disable-static