[Android] [PATCH 6/8] contrib: ffmpeg: Add --arch=x86 if compiling to x86

Edward Wang edward.c.wang at compdigitec.com
Wed Jul 25 04:51:45 CEST 2012


---
 contrib/src/ffmpeg/rules.mak   |    5 +++++
 contrib/src/postproc/rules.mak |    5 +++++
 2 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/contrib/src/ffmpeg/rules.mak b/contrib/src/ffmpeg/rules.mak
index fb069a3..4026470 100644
--- a/contrib/src/ffmpeg/rules.mak
+++ b/contrib/src/ffmpeg/rules.mak
@@ -61,6 +61,11 @@ FFMPEG_CFLAGS +=-mfloat-abi=softfp -mfpu=neon
 endif
 endif
 
+# x86 stuff
+ifeq ($(ARCH),i386)
+FFMPEGCONF += --arch=x86
+endif
+
 # Darwin
 ifdef HAVE_DARWIN_OS
 FFMPEGCONF += --arch=$(ARCH) --target-os=darwin
diff --git a/contrib/src/postproc/rules.mak b/contrib/src/postproc/rules.mak
index 6271b50..b4d1337 100644
--- a/contrib/src/postproc/rules.mak
+++ b/contrib/src/postproc/rules.mak
@@ -30,6 +30,11 @@ POSTPROC_CFLAGS +=-mfloat-abi=softfp -mfpu=neon
 endif
 endif
 
+# x86 stuff
+ifeq ($(ARCH),i386)
+POSTPROCCONF += --arch=x86
+endif
+
 # Darwin
 ifdef HAVE_DARWIN_OS
 POSTPROCCONF += --arch=$(ARCH) --target-os=darwin
-- 
1.7.5.4



More information about the Android mailing list