[vlc-commits] contrib: Flac needs USE_OBSOLETE_SIGCONTEXT_FLAVOR on Android-x86
Edward Wang
git at videolan.org
Wed Jul 25 09:30:16 CEST 2012
vlc | branch: master | Edward Wang <edward.c.wang at compdigitec.com> | Sun Jul 22 23:54:31 2012 -0400| [2b1c139222f503fe0382aea0601e14bb74bcb81f] | committer: Rafaël Carré
contrib: Flac needs USE_OBSOLETE_SIGCONTEXT_FLAVOR on Android-x86
Headers normally present under normal Linux are missing in bionic.
Signed-off-by: Rafaël Carré <funman at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2b1c139222f503fe0382aea0601e14bb74bcb81f
---
contrib/src/flac/rules.mak | 7 +++++++
1 file changed, 7 insertions(+)
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)
More information about the vlc-commits
mailing list