Commit 2b1c1392 authored by Edward Wang's avatar Edward Wang Committed by 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: default avatarRafaël Carré <funman@videolan.org>
parent 21f9e5fb
......@@ -19,6 +19,13 @@ flac: flac-$(FLAC_VERSION).tar.gz .sum-flac
$(APPLY) $(SRC)/flac/libFLAC-pc.patch
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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment