[vlc-commits] contrib: gmp: fix clang mips build
Thomas Guillem
git at videolan.org
Mon Aug 29 13:36:24 CEST 2016
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Aug 25 17:45:07 2016 +0200| [d946a8007b30667d391d09b65f6c7e5a56e00c6b] | committer: Thomas Guillem
contrib: gmp: fix clang mips build
disable asm because of invalid operand for inline asm constraint error.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d946a8007b30667d391d09b65f6c7e5a56e00c6b
---
contrib/src/gmp/rules.mak | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/contrib/src/gmp/rules.mak b/contrib/src/gmp/rules.mak
index 01c8c4f..d4f011c 100644
--- a/contrib/src/gmp/rules.mak
+++ b/contrib/src/gmp/rules.mak
@@ -3,6 +3,14 @@
GMP_VERSION := 6.0.0
GMP_URL := https://gmplib.org/download/gmp-$(GMP_VERSION)/gmp-$(GMP_VERSION).tar.bz2
+GMP_CONF :=
+
+ifeq ($(CC),clang)
+ifeq ($(ARCH),mipsel)
+GMP_CONF += --disable-assembly
+endif
+endif
+
$(TARBALLS)/gmp-$(GMP_VERSION).tar.bz2:
$(call download_pkg,$(GMP_URL),gmp)
@@ -16,6 +24,6 @@ gmp: gmp-$(GMP_VERSION).tar.bz2 .sum-gmp
$(MOVE)
.gmp: gmp
- cd $< && $(HOSTVARS) ./configure $(HOSTCONF)
+ cd $< && $(HOSTVARS) ./configure $(HOSTCONF) $(GMP_CONF)
cd $< && $(MAKE) install
touch $@
More information about the vlc-commits
mailing list