From 2ee447ff1412878dd69d0692e256b8ddd4269939 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Thu, 20 Nov 2014 14:01:35 -0800 Subject: [PATCH] iOS: add -miphoneos-version-min --- dist-build/ios.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dist-build/ios.sh b/dist-build/ios.sh index 3378060c..883eaf4c 100755 --- a/dist-build/ios.sh +++ b/dist-build/ios.sh @@ -3,9 +3,10 @@ export XCODEDIR=$(xcode-select -p) export BASEDIR="${XCODEDIR}/Platforms/iPhoneOS.platform/Developer" export PATH="${BASEDIR}/usr/bin:$BASEDIR/usr/sbin:$PATH" -export SDK="${BASEDIR}/SDKs/iPhoneOS8.0.sdk" -export CFLAGS="-Oz -mthumb -arch armv7 -isysroot ${SDK}" -export LDFLAGS="-mthumb -arch armv7 -isysroot ${SDK}" +export SDK="${BASEDIR}/SDKs/iPhoneOS.sdk" +export IPHONEOS_VERSION_MIN="5.1.1" +export CFLAGS="-Oz -mthumb -arch armv7 -isysroot ${SDK} -miphoneos-version-min=${IPHONEOS_VERSION_MIN}" +export LDFLAGS="-mthumb -arch armv7 -isysroot ${SDK} -miphoneos-version-min=${IPHONEOS_VERSION_MIN}" export PREFIX="$(pwd)/libsodium-ios" ./configure --host=arm-apple-darwin10 \