[vlc-commits] extras/ios: fix build script

Felix Paul Kühne git at videolan.org
Thu Sep 4 22:02:14 CEST 2014


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Thu Sep  4 22:01:50 2014 +0200| [d32f040df7c85f9331cf5f5aa6438a84e2ad8360] | committer: Felix Paul Kühne

extras/ios: fix build script

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d32f040df7c85f9331cf5f5aa6438a84e2ad8360
---

 extras/package/ios/build.sh |   20 +++++++++++---------
 1 file changed, 11 insertions(+), 9 deletions(-)

diff --git a/extras/package/ios/build.sh b/extras/package/ios/build.sh
index 5c411f7..e484594 100755
--- a/extras/package/ios/build.sh
+++ b/extras/package/ios/build.sh
@@ -5,7 +5,7 @@ PLATFORM=OS
 VERBOSE=no
 SDK_VERSION=7.0
 SDK_MIN=5.1
-64BIT_SDK_MIN=7.0
+SIXTYFOURBIT_SDK_MIN=7.0
 ARCH=armv7
 
 usage()
@@ -132,17 +132,19 @@ export PLATFORM=$PLATFORM
 export SDK_VERSION=$SDK_VERSION
 
 export CFLAGS="-isysroot ${SDKROOT} -arch ${ARCH} ${OPTIM}"
+
 if [ "$PLATFORM" = "OS" ]; then
 if [ "$ARCH" != "arm64" ]; then
 export CFLAGS="${CFLAGS} -mcpu=cortex-a8 -miphoneos-version-min=${SDK_MIN}"
 else
-export CFLAGS="${CFLAGS} -miphoneos-version-min=${64BIT_SDK_MIN}"
+export CFLAGS="${CFLAGS} -miphoneos-version-min=${SIXTYFOURBIT_SDK_MIN}"
 fi
 else
 if [ "$ARCH" != "x86_64" ]; then
 export CFLAGS="${CFLAGS} -miphoneos-version-min=${SDK_MIN}"
 else
-export CFLAGS="${CFLAGS} -miphoneos-version-min=${64BIT_SDK_MIN}"
+export CFLAGS="${CFLAGS} -miphoneos-version-min=${SIXTYFOURBIT_SDK_MIN}"
+fi
 fi
 
 export CXXFLAGS="${CFLAGS} -stdlib=libstdc++"
@@ -169,9 +171,9 @@ if [ "$ARCH" != "arm64" ]; then
     EXTRA_LDFLAGS+=" -miphoneos-version-min=${SDK_MIN}"
     export LDFLAGS="${LDFLAGS} -miphoneos-version-min=${SDK_MIN}"
 else
-    EXTRA_CFLAGS+=" -miphoneos-version-min=${64BIT_SDK_MIN}"
-    EXTRA_LDFLAGS+=" -miphoneos-version-min=${64BIT_SDK_MIN}"
-    export LDFLAGS="${LDFLAGS} -miphoneos-version-min=${64BIT_SDK_MIN}"
+    EXTRA_CFLAGS+=" -miphoneos-version-min=${SIXTYFOURBIT_SDK_MIN}"
+    EXTRA_LDFLAGS+=" -miphoneos-version-min=${SIXTYFOURBIT_SDK_MIN}"
+    export LDFLAGS="${LDFLAGS} -miphoneos-version-min=${SIXTYFOURBIT_SDK_MIN}"
 fi
     EXTRA_LDFLAGS="-arch ${ARCH}"
 else
@@ -182,9 +184,9 @@ if [ "$ARCH" != "x86_64" ]; then
     EXTRA_LDFLAGS+=" -miphoneos-version-min=${SDK_MIN}"
     export LDFLAGS="${LDFLAGS} -miphoneos-version-min=${SDK_MIN}"
 else
-    EXTRA_CFLAGS+=" -miphoneos-version-min=${64BIT_SDK_MIN}"
-    EXTRA_LDFLAGS+=" -miphoneos-version-min=${64BIT_SDK_MIN}"
-    export LDFLAGS="${LDFLAGS} -miphoneos-version-min=${64BIT_SDK_MIN}"
+    EXTRA_CFLAGS+=" -miphoneos-version-min=${SIXTYFOURBIT_SDK_MIN}"
+    EXTRA_LDFLAGS+=" -miphoneos-version-min=${SIXTYFOURBIT_SDK_MIN}"
+    export LDFLAGS="${LDFLAGS} -miphoneos-version-min=${SIXTYFOURBIT_SDK_MIN}"
 fi
 fi
 



More information about the vlc-commits mailing list