From e449a43bbe12f8119399928db1ae26adc71dde14 Mon Sep 17 00:00:00 2001 From: Landon Fuller Date: Sat, 12 Feb 2011 10:20:42 -0500 Subject: [PATCH] Allow specification of the minimum supported iOS version. --- build-ios.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build-ios.sh b/build-ios.sh index d9010af..751fc69 100755 --- a/build-ios.sh +++ b/build-ios.sh @@ -3,10 +3,11 @@ PLATFORM_IOS=/Developer/Platforms/iPhoneOS.platform/ PLATFORM_IOS_SIM=/Developer/Platforms/iPhoneSimulator.platform/ SDK_IOS_VERSION="4.1" +MIN_IOS_VERSION="3.0" mkdir -p "build-ios" pushd "build-ios" export CC="${PLATFORM_IOS}"/Developer/usr/bin/gcc-4.2 -export CFLAGS="-arch armv6 -isysroot ${PLATFORM_IOS}/Developer/SDKs/iPhoneOS${SDK_IOS_VERSION}.sdk/" +export CFLAGS="-arch armv6 -isysroot ${PLATFORM_IOS}/Developer/SDKs/iPhoneOS${SDK_IOS_VERSION}.sdk/ -miphoneos-version-min=${MIN_IOS_VERSION}" ../configure --host=arm-apple-darwin10 && make popd