blob: 1e03869c91e5d469bfee6b300548ba5ca0755f81 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
|