[Android] [PATCH 6/6] contrib: Disable ASM when compiling for Android x86

Edward Wang edward.c.wang at compdigitec.com
Sun Jul 15 22:28:56 CEST 2012


---
 contrib/src/postproc/rules.mak |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/contrib/src/postproc/rules.mak b/contrib/src/postproc/rules.mak
index 6271b50..be74cb9 100644
--- a/contrib/src/postproc/rules.mak
+++ b/contrib/src/postproc/rules.mak
@@ -47,6 +47,17 @@ endif
 # Linux
 ifdef HAVE_LINUX
 POSTPROCCONF += --target-os=linux
+
+ifeq ($(ANDROID_ABI), x86)
+ifdef HAVE_ANDROID
+# Cross-compiling to Android-x86
+# Without this, you get
+# > Must specify target arch and OS when cross-compiling
+POSTPROCCONF += --arch=x86
+POSTPROC_CFLAGS += -fno-PIC
+endif # HAVE_ANDROID
+endif
+
 # --enable-pic
 endif
 
-- 
1.7.5.4



More information about the Android mailing list