]> git.videolan.org Git - x264.git/commit
iPhone compilation support
authorDavid Conrad <lessen42@gmail.com>
Sun, 4 Oct 2009 11:24:42 +0000 (07:24 -0400)
committerJason Garrett-Glaser <darkshikari@gmail.com>
Mon, 15 Feb 2010 09:00:07 +0000 (01:00 -0800)
commit520ba2becf677d5ed8c1d7141eb25c65d08a3b3e
treeb33c6b44d707b6482b9050e1de9a547955a76381
parent2b5a0c693faa4b807d02b923f596a2aff6778760
iPhone compilation support
Also add --sysroot to configure options

To build for iPhone 3gs / iPod touch 3g:
CC=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc ./configure --host=arm-apple-darwin --sysroot=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk

For older devices, add
--extra-cflags='-arch armv6 -mcpu=arm1176jzf-s' --extra-ldflags='-arch armv6' --disable-asm
common/arm/asm.S
common/arm/pixel-a.S
configure
extras/gas-preprocessor.pl [new file with mode: 0755]