分类: Android平台
2013-06-05 15:11:57
export NDK=/tmp/android-ndk-r8b # Create the standalone toolchain $NDK/build/tools/make-standalone-toolchain.sh \ --platform=android-9 \ --install-dir=/tmp/my-android-toolchain export PATH=/tmp/my-android-toolchain/bin:$PATH export SYSROOT=/tmp/my-android-toolchain/sysroot export CC="arm-linux-androideabi-gcc --sysroot $SYSROOT" # Download the latest release curl -O tar xvfz c-ares-1.9.1.tar.gz # Configure cd c-ares-1.9.1 && mkdir build ./configure --prefix=$(pwd)/build \ --host=arm-linux \ --disable-shared \ CFLAGS="-march=armv7-a" # Build and install make && make install