#! /bin/sh
Ndk=/usr/local/android-ndk-r10
Prebuilt=${ndk}/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64
Platform=${ndk}/platforms/android-l/arch-arm
#-MCPU=CORTEX-A9
#-extra-cxxflags= "-o3-fpic-dandroid"
./configure--target-os=linux--arch=armv7-a--enable-cross-compile--extra-libs= "-LGCC" \
--CPU=CORTEX-A9 \
--cc= $PREBUILT/BIN/ARM-LINUX-ANDROIDEABI-GCC \
--cxx= $PREBUILT/bin/arm-linux-androideabi-g++ \
--nm= $PREBUILT/bin/arm-linux-androideabi-nm \
--ar= $PREBUILT/bin/arm-linux-androideabi-ar \
--as= $PREBUILT/bin/arm-linux-androideabi-as \
--ld=/usr/local/android-ndk-r10/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/ ARM-LINUX-ANDROIDEABI/BIN/LD \
--cross-prefix= $PREBUILT/bin/arm-linux-androideabi-\
--nm= $PREBUILT/bin/arm-linux-androideabi-nm \
--extra-cflags= "-o3-fpic-dandroid-d__stdc_constant_macros-dhave_sys_uio_h=1-dipv6mr_interface=ipv6mr_ifindex- fasm-wno-psabi-fno-short-enums-fno-strict-aliasing-finline-limit=300 $OPTIMIZE _cflags "\
--extra-cxxflags= "-o3-fpic-dandroid-fpermissive" \
--enable-shared--ENABLE-GPL--disable-asm--sysroot= $PLATFORM \
--sysinclude= $PLATFORM/usr/include--disable-armv6--disable-armv6t2--disable-yasm--disable-ffplay-- Disable-ffserver \
--disable-manpages--enable-avfilter--ENABLE-GPL--enable-swscale--enable-postproc--ENABLE-GPL--enable-pthreads \
--disable-podpages \
--prefix=/usr/local/ffmpeg-android--extra-ldflags= "-nostdlib-rpath-link= $PLATFORM/usr/lib \
-l$platform/usr/lib-l${prebuilt}/lib/gcc/arm-linux-androideabi/4.9 "
#-lc-lm-ldl-llog \
# $PREBUILT/LIB/GCC/ARM-LINUX-ANDROIDEABI/4.9/CRTBEGIN.O \
# $PREBUILT/LIB/GCC/ARM-LINUX-ANDROIDEABI/4.9/CRTEND.O "
#/usr/local/android-ndk-r10/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/lib/gcc/ Arm-linux-androideabi/4.9/armv7-a?
ffmpeg-2.3.3 Configure for Android