[Android] [PATCH 5/7] contrib: Flac needs USE_OBSOLETE_SIGCONTEXT_FLAVOR on Android-x86

Rafaël Carré funman at videolan.org
Mon Jul 23 16:49:19 CEST 2012


Le 2012-07-23 05:54, Edward Wang a écrit :
> Headers normally present under normal Linux are missing in bionic.
> ---
>  contrib/src/flac/rules.mak |    7 +++++++
>  1 files changed, 7 insertions(+), 0 deletions(-)
> 
> diff --git a/contrib/src/flac/rules.mak b/contrib/src/flac/rules.mak
> index 287f805..b80c49b 100644
> --- a/contrib/src/flac/rules.mak
> +++ b/contrib/src/flac/rules.mak
> @@ -20,6 +20,13 @@ flac: flac-$(FLAC_VERSION).tar.gz .sum-flac
>  ifdef HAVE_DARWIN_OS
>  	cd $(UNPACK_DIR) && sed -e 's,-dynamiclib,-dynamiclib -arch $(ARCH),' -i.orig configure
>  endif
> +ifdef HAVE_ANDROID
> +ifeq ($(ANDROID_ABI), x86)
> +	# cpu.c:130:29: error: sys/ucontext.h: No such file or directory
> +	# defining USE_OBSOLETE_SIGCONTEXT_FLAVOR allows us to bypass that
> +	cd $(UNPACK_DIR) && sed -i.orig -e s/"#  undef USE_OBSOLETE_SIGCONTEXT_FLAVOR"/"#define USE_OBSOLETE_SIGCONTEXT_FLAVOR"/g src/libFLAC/cpu.c

Does this code work btw ?
Did you test what happens? (Don't know if your device has SSE or not)

> +endif
> +endif
>  	$(UPDATE_AUTOCONFIG)
>  	$(MOVE)


More information about the Android mailing list