diff --git a/depends/common/gmp/001-gcc15-fix-compilation.patch b/depends/common/gmp/001-gcc15-fix-compilation.patch new file mode 100644 index 00000000..197fd310 --- /dev/null +++ b/depends/common/gmp/001-gcc15-fix-compilation.patch @@ -0,0 +1,24 @@ +From 14837bacbbd80804a11fee2016f660d132bf8aec Mon Sep 17 00:00:00 2001 +From: Marc Glisse +Date: Wed, 29 Jan 2025 22:38:02 +0100 +Subject: [PATCH] Complete function prototype in acinclude.m4 for C23 + compatibility + +--- + ChangeLog | 5 +++++ + acinclude.m4 | 2 +- + 2 files changed, 6 insertions(+), 1 deletion(-) + +diff --git a/acinclude.m4 b/acinclude.m4 +index fddb5fb07..4fca12de2 100644 +--- a/acinclude.m4 ++++ b/acinclude.m4 +@@ -609,7 +609,7 @@ GMP_PROG_CC_WORKS_PART([$1], [long long reliability test 1], + + #if defined (__GNUC__) && ! defined (__cplusplus) + typedef unsigned long long t1;typedef t1*t2; +-void g(){} ++void g(int,t1 const*,t1,t2,t1 const*,int){} + void h(){} + static __inline__ t1 e(t2 rp,t2 up,int n,t1 v0) + {t1 c,x,r;int i;if(v0){c=1;for(i=1;i/configure --prefix=${CMAKE_INSTALL_PREFIX} --disable-assembly