./configure --enable-cross-compile --prefix=../local/armv7 --arch=arm --target-os=darwin --cc=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc --as='gas-preprocessor/gas-preprocessor.pl /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc' --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk --cpu=cortex-a9 --extra-cflags='-arch armv7' --extra-ldflags='-arch armv7 -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk' --enable-pic --enable-static --disable-shared --disable-doc --disable-debug --disable-doc  --disable-programs --disable-avdevice --disable-postproc --disable-avfilter --disable-swresample --disable-avresample --disable-network --disable-everything --enable-decoder=aac --enable-decoder=h264


里面只用到h264和aac所以其它关闭了。