1、下载curl-7.40.0.tar.gz(http://curl.haxx.se/download.html)
2、解压 # tar zxvf curl-7.40.0.tar.gz
3、新建脚本build.sh
#!/bin/sh
export CC="/Applications/Xcode.app/Contents/Developer/usr/bin/gcc"
export CFLAGS="-arch armv7 -pipe -Os -gdwarf-2 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk"
export LDFLAGS="-arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk"
./configure --disable-shared --enable-static --without-ssl --host="armv7-apple-darwin"
4、# ./build.sh
5、# make