[vlc-devel] [PATCH 2/3] Allow build vlc-ios for selected architecture armv7 or armv7s

Rafaël Carré funman at videolan.org
Fri Jan 25 04:37:12 CET 2013


Le 25/01/2013 03:40, Gleb Pinigin a écrit :
> Well, what is the proper way to pass sub-architectural variants?
> 
> I think it isn't right place(main.mak) to define some architectural
> specific flags, ain't it?
>        ifeq ($(ARCH), arm)
>        EXTRA_CFLAGS += -arch armv7 -mcpu=cortex-a8

This could be set by compile script, for example your script would do:

../bootstrap --host=arm-apple-darwin
echo "EXTRA_CFLAGS= -arch armv7 -mcpu=cortex-a8" >> config.mak
make fetch
make -j8

And you can remove EXTRA_CFLAGS entirely, so you can add as well extra
flags depending on your target (e.g.
-weirdOptionSupportedByAppleCompilerForTheiPhone6=foobar)

> 
> 2013/1/25 Rémi Denis-Courmont <remi at remlab.net>
> 
>> No, $(ARCH) is not intended to contain sub-architectural variants. It's
>> "arm"
>> for all 32-bits ARM subarchitectures.



More information about the vlc-devel mailing list