summaryrefslogtreecommitdiff
path: root/aarch64-linux-android-configure
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-06-09 20:12:59 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-06-09 20:12:59 +0800
commite165344ab55e98e27e13f7024b6143aa84518489 (patch)
treeb5ebdc6a7b2c2ba85bcf3c37771b79f3531a1e02 /aarch64-linux-android-configure
parenta1e538564d4b2a60be70a32ec39afdba249ce37d (diff)
Add support for Autotools
though the resulting library is not right yet.
Diffstat (limited to 'aarch64-linux-android-configure')
-rwxr-xr-xaarch64-linux-android-configure8
1 files changed, 8 insertions, 0 deletions
diff --git a/aarch64-linux-android-configure b/aarch64-linux-android-configure
new file mode 100755
index 0000000..5594ce3
--- /dev/null
+++ b/aarch64-linux-android-configure
@@ -0,0 +1,8 @@
+#!/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 CFLAGS="$CFLAGS -g"
+./configure --host=$TARGET --prefix=$PREFIX --libdir=$PREFIX/lib/$TARGET/$API --disable-static