summaryrefslogtreecommitdiff
path: root/aarch64-linux-android-configure
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-06-03 20:28:59 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-06-03 20:28:59 +0800
commit6dfbf8fd561187ef23eacf9aaae606c0fb42381f (patch)
tree42af64e6988c9468b7abedbc9f980722d18a6ca6 /aarch64-linux-android-configure
Initial working commit
Diffstat (limited to 'aarch64-linux-android-configure')
-rwxr-xr-xaarch64-linux-android-configure9
1 files changed, 9 insertions, 0 deletions
diff --git a/aarch64-linux-android-configure b/aarch64-linux-android-configure
new file mode 100755
index 0000000..8690ece
--- /dev/null
+++ b/aarch64-linux-android-configure
@@ -0,0 +1,9 @@
+#!/bin/sh
+export TOOLCHAIN=$ANDROID_NDK_ROOT/toolchains/llvm/prebuilt/linux-x86_64
+export TARGET=aarch64-linux-android
+export API=21
+export CC=$TOOLCHAIN/bin/$TARGET$API-clang
+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