您的位置:首页 > 移动开发 > IOS开发

编译IOS版本libcurl-7.40.0

2015-01-11 10:29 197 查看
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: