summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2012-12-16 04:59:03 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2012-12-16 16:52:00 +0100
commit835c29a965f62e9da16e3535c0155b2b0219c191 (patch)
tree0decd2bb2061ef311ae8b2264d3d3d12fd902d12
parent3ceffe9659ae4a98a4127812126379a263ab991e (diff)
downloadbuildroot-novena-835c29a965f62e9da16e3535c0155b2b0219c191.tar.gz
buildroot-novena-835c29a965f62e9da16e3535c0155b2b0219c191.zip
gnupg: fix build failure on MIPS64
Fixes: http://autobuild.buildroot.org/results/49d5891dcecf2cce8de9f2bdb16a76ff86579f45/build-end.log Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r--package/gnupg/gnupg-mips64-build-fix.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/package/gnupg/gnupg-mips64-build-fix.patch b/package/gnupg/gnupg-mips64-build-fix.patch
new file mode 100644
index 000000000..014435c14
--- /dev/null
+++ b/package/gnupg/gnupg-mips64-build-fix.patch
@@ -0,0 +1,20 @@
+Fix build issue on MIPS64
+
+On MIPS64, there is a syntax problem in the preprocessor
+conditions. Fix that to avoid a build failure.
+
+Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+
+Index: b/mpi/longlong.h
+===================================================================
+--- a/mpi/longlong.h
++++ b/mpi/longlong.h
+@@ -752,7 +752,7 @@
+ (w1) = _r >> 64; \
+ (w0) = (UDItype) _r; \
+ } while (0)
+-# elif if __GNUC__ > 2 || __GNUC_MINOR__ >= 7
++# elif __GNUC__ > 2 || __GNUC_MINOR__ >= 7
+ # define umul_ppmm(w1, w0, u, v) \
+ __asm__ ("dmultu %2,%3" \
+ : "=l" ((UDItype)(w0)), \