[Android] [PATCH 5/7] contrib: Flac needs USE_OBSOLETE_SIGCONTEXT_FLAVOR on Android-x86
Edward Wang
edward.c.wang at compdigitec.com
Mon Jul 23 05:54:31 CEST 2012
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
+endif
+endif
$(UPDATE_AUTOCONFIG)
$(MOVE)
--
1.7.5.4
More information about the Android
mailing list