diff options
Diffstat (limited to 'configure-iphone')
-rwxr-xr-x | configure-iphone | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/configure-iphone b/configure-iphone index cf399189..56ecbdc8 100755 --- a/configure-iphone +++ b/configure-iphone @@ -18,7 +18,10 @@ if test "$*" = "--help" -o "$*" = "-h"; then echo " to use. By default, the compiler is deduced from the" echo " SDK." echo " ARCH Optional flags to specify target architecture, e.g." - echo " ARCH='-arch armv6'. Default is armv7." + echo " ARCH=\"-arch armv6\". Default is armv7." + echo " MIN_IOS Optional flags to specify minimum supported iOS" + echo " versions, e.g. MIN_IOS=\"-miphoneos-version-min=10.0\". " + echo " Default is 7.0." echo "" exit 0 fi @@ -115,6 +118,13 @@ if test "${ARCH}" = ""; then fi export ARCH_VAL=`echo ${ARCH} | sed 's/\-arch //' | sed -e 's/^[ \t]*//;s/[ \t]*$//' ` +if test "${MIN_IOS}" = ""; then + MIN_IOS="7.0" + echo "$F: MIN_IOS is not specified, choosing ${MIN_IOS}" + CFLAGS="${CFLAGS} -miphoneos-version-min=${MIN_IOS}" + LDFLAGS="${LDFLAGS} -miphoneos-version-min=${MIN_IOS}" +fi + # Set CXX if not set if test "${CXX}" = ""; then export CXX=`echo ${CC} | sed 's/gcc/g++/'` |