-
Notifications
You must be signed in to change notification settings - Fork 1
/
BUILD_HOWTO.txt
25 lines (17 loc) · 1.45 KB
/
BUILD_HOWTO.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
DEVICE
export IPHONEOS_DEPLOYMENT_TARGET="7.0"
export CC="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang"
export CFLAGS="-arch armv7 -pipe -Os -fembed-bitcode -gdwarf-2 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk -I.. -DHAVE_SOCKET -DHAVE_FCNTL_O_NONBLOCK"
export LDFLAGS="-arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk"
./configure --disable-shared --enable-static --host="armv7-apple-darwin" --prefix=/usr-iphone/local --with-darwinssl --enable-threaded-resolver
make -j `sysctl -n hw.logicalcpu_max`
armv7, armv7s, arm64 (aarch64-apple-darwin)
SIMULATOR
export CFLAGS="-arch i386 -pipe -Os -fembed-bitcode -gdwarf-2 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk -I.. -DHAVE_SOCKET -DHAVE_FCNTL_O_NONBLOCK"
export CPPFLAGS="-fembed-bitcode -D__IPHONE_OS_VERSION_MIN_REQUIRED=${IPHONEOS_DEPLOYMENT_TARGET%%.*}0000"
export LDFLAGS="-arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk"
./configure --disable-shared --enable-static --host="i386-apple-darwin" --prefix=/usr-iphone/local --with-darwinssl --enable-threaded-resolver
i386, x86_64
MAKE UNIVERSAL STATIC LIB
lipo -create -output libcurl.a libcurl-*
mrnuku, 2016