summaryrefslogtreecommitdiff
path: root/aarch64-linux-android-configure
blob: 8690ecee3fcc2ac4cf7d8d4c65aa9e15100384f1 (plain)
1
2
3
4
5
6
7
8
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