[vlc-commits] contrib: enforce the build architecture for iOS

Felix Paul Kühne git at videolan.org
Tue Mar 20 19:08:42 CET 2012


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Tue Mar 20 19:08:36 2012 +0100| [6a77e0bd2b017df7c20d79af1beb43cda2abcc79] | committer: Felix Paul Kühne

contrib: enforce the build architecture for iOS

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

 contrib/src/main.mak |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/contrib/src/main.mak b/contrib/src/main.mak
index 5927a11..47d4a54 100644
--- a/contrib/src/main.mak
+++ b/contrib/src/main.mak
@@ -154,6 +154,13 @@ AR=xcrun ar
 LD=xcrun ld
 STRIP=xcrun strip
 RANLIB=xcrun ranlib
+ifeq ($(ARCH), arm)
+EXTRA_CFLAGS += -arch armv7 -mno-thumb
+EXTRA_LDFLAGS += -arch armv7
+else
+EXTRA_CFLAGS += -m32
+EXTRA_LDFLAGS += -m32
+endif
 EXTRA_CFLAGS += -isysroot $(SDKROOT)  -miphoneos-version-min=5.0
 EXTRA_LDFLAGS += -Wl,-syslibroot,$(SDKROOT) -isysroot $(SDKROOT) -miphoneos-version-min=5.0
 endif



More information about the vlc-commits mailing list