[vlc-commits] ios: fix contrib compilation with Xcode 5

Felix Paul Kühne git at videolan.org
Mon Oct 7 17:33:10 CEST 2013


vlc/vlc-2.1 | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Mon Oct  7 15:53:04 2013 +0200| [13634b4c2b9b8f9e430f18f1225b6ff12e4dcd79] | committer: Felix Paul Kühne

ios: fix contrib compilation with Xcode 5

(cherry picked from commit 7e7f263d5c98288773107ff7019d83cf930b52ad)

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

 extras/package/ios/build.sh |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/extras/package/ios/build.sh b/extras/package/ios/build.sh
index 25dbf17..041beb9 100755
--- a/extras/package/ios/build.sh
+++ b/extras/package/ios/build.sh
@@ -162,10 +162,13 @@ if [ "$PLATFORM" = "OS" ]; then
     EXTRA_CFLAGS="-arch ${ARCH} -mcpu=cortex-a8"
     EXTRA_LDFLAGS="-arch ${ARCH}"
 else
-    EXTRA_CFLAGS="-m32"
-    EXTRA_LDFLAGS="-m32"
+    EXTRA_CFLAGS="-arch ${ARCH}"
+    EXTRA_LDFLAGS="-arch ${ARCH}"
 fi
 
+EXTRA_CFLAGS+=" -miphoneos-version-min=${SDK_MIN}"
+EXTRA_LDFLAGS+=" -miphoneos-version-min=${SDK_MIN}"
+
 info "LD FLAGS SELECTED = '${LDFLAGS}'"
 
 spushd ${VLCROOT}/contrib



More information about the vlc-commits mailing list