准备工作

编译

wget -O- "https://github.com/libexpat/libexpat/releases/download/R_2_2_9/expat-2.2.9.tar.gz" | tar xz
cd expat-2.2.9
#for arm
./configure --host=arm-linux-androideabi --prefix=/root/android-arm
make install-strip -j $(grep "cpu cores" /proc/cpuinfo | wc -l)
make clean
#for arm64
./configure --host=aarch64-linux-android --prefix=/root/android-arm64
make install-strip -j $(grep "cpu cores" /proc/cpuinfo | wc -l)
cd ..
rm -rf expat-2.2.9

下载

编译好的文件