[vlc-commits] Contribs: gmp, fix build on PPC64

Sean McGovern git at videolan.org
Tue Feb 9 00:31:20 CET 2016


vlc | branch: master | Sean McGovern <gseanmcg at gmail.com> | Sun Feb  7 18:27:52 2016 -0500| [17595186c1f1e2a22b7689a640cf4199661fec1e] | committer: Jean-Baptiste Kempf

Contribs: gmp, fix build on PPC64

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=17595186c1f1e2a22b7689a640cf4199661fec1e
---

 contrib/src/gmp/ppc64.patch |   26 ++++++++++++++++++++++++++
 contrib/src/gmp/rules.mak   |    1 +
 2 files changed, 27 insertions(+)

diff --git a/contrib/src/gmp/ppc64.patch b/contrib/src/gmp/ppc64.patch
new file mode 100644
index 0000000..1113b41
--- /dev/null
+++ b/contrib/src/gmp/ppc64.patch
@@ -0,0 +1,26 @@
+
+Signed-off-by: Armin Kuster <akuster808 at gmail.com>
+
+This patch with pulled from gmp.
+https://gmplib.org/repo/gmp/rev/4a6d258b467f
+Upstream-Status: Backport
+
+# HG changeset patch
+# User Torbjorn Granlund <tege at gmplib.org>
+# Date 1395835068 -3600
+# Node ID 4a6d258b467f661da0894cc60ecd060f2e3c67c7
+# Parent  301ce2788826a2d4d2725bd5cf01e998638db37a
+Provide default for BMOD_1_TO_MOD_1_THRESHOLD.
+
+diff -r 301ce2788826 -r 4a6d258b467f mpn/powerpc64/mode64/gcd_1.asm
+--- a/mpn/powerpc64/mode64/gcd_1.asm    Tue Mar 25 15:34:52 2014 +0100
++++ b/mpn/powerpc64/mode64/gcd_1.asm    Wed Mar 26 12:57:48 2014 +0100
+@@ -43,6 +43,9 @@
+ define(`n',     `r4')
+ define(`v0',    `r5')
+
++ifdef(`BMOD_1_TO_MOD_1_THRESHOLD',,
++  `define(`BMOD_1_TO_MOD_1_THRESHOLD',30)')
++
+ EXTERN_FUNC(mpn_mod_1)
+ EXTERN_FUNC(mpn_modexact_1c_odd)
diff --git a/contrib/src/gmp/rules.mak b/contrib/src/gmp/rules.mak
index fa1bbe3..8c8f1d6 100644
--- a/contrib/src/gmp/rules.mak
+++ b/contrib/src/gmp/rules.mak
@@ -12,6 +12,7 @@ gmp: gmp-$(GMP_VERSION).tar.bz2 .sum-gmp
 	$(UNPACK)
 	$(APPLY) $(SRC)/gmp/thumb.patch
 	$(APPLY) $(SRC)/gmp/clang.patch
+	$(APPLY) $(SRC)/gmp/ppc64.patch
 	$(MOVE)
 
 .gmp: gmp



More information about the vlc-commits mailing list