交叉编译 Android 的 c-ares
准备工作
编译
wget -O- "https://c-ares.haxx.se/download/c-ares-1.15.0.tar.gz" | tar xz
cd c-ares-1.15.0
#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 c-ares-1.15.0