1.下载源码:
git clone https://github.com/tukaani-project/xz.git --recursive
2.配置交叉编译环境:
生成Android平台makefile
export ANDROID_API=25 export ANDROID_NDK=/opt/aarch64-darwin-android export ANDROID_NDK_REVISION=r25b export AR=/opt/aarch64-darwin-android/bin/llvm-ar export AS=/opt/aarch64-darwin-android/bin/llvm-as export CC=/opt/aarch64-darwin-android/bin/clang export CMAKE_TOOLCHAIN_FILE=/opt/aarch64-darwin-android/Toolchain.cmake export CROSS_ROOT=/opt/aarch64-darwin-android export CROSS_TRIPLE=aarch64-darwin-android export CXX=/opt/aarch64-darwin-android/bin/clang++ export LD=/opt/aarch64-dar