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

Rafaël Carré funman at videolan.org
Tue Jul 17 18:52:43 CEST 2012


Le 2012-07-15 22:28, Edward Wang a écrit :
> ---
>  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

It could be done for all x86 i think

> +POSTPROC_CFLAGS += -fno-PIC

unrelated ?

> +endif # HAVE_ANDROID
> +endif
> +
>  # --enable-pic
>  endif
>  
> 



More information about the Android mailing list