[vlc-devel] [PATCH] contrib: dav1d: disable asm for Android x86

Thomas Guillem thomas at gllm.fr
Wed Jan 9 09:09:07 CET 2019


This fixes the following warning (treated as error) on Android:

"ld: warning: shared library text segment is not shareable"
---
 contrib/src/dav1d/rules.mak | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/contrib/src/dav1d/rules.mak b/contrib/src/dav1d/rules.mak
index a4cb58b079..8bbd40c0e7 100644
--- a/contrib/src/dav1d/rules.mak
+++ b/contrib/src/dav1d/rules.mak
@@ -16,6 +16,12 @@ ifdef HAVE_WIN32
 DAV1D_CONF += -D win32_ver=false
 endif
 
+ifdef HAVE_ANDROID
+ifeq ($(ARCH),i386)
+DAV1D_CONF += -D build_asm=false
+endif
+endif
+
 $(TARBALLS)/dav1d-$(DAV1D_VERSION).tar.xz:
 	$(call download_pkg,$(DAV1D_URL),dav1d)
 	#~ $(call download_git,$(DAV1D_URL),,$(DAV1D_HASH))
-- 
2.20.1



More information about the vlc-devel mailing list