diff --git a/package/mpir/0003-fix-configure-with-gcc-14.patch b/package/mpir/0003-fix-configure-with-gcc-14.patch new file mode 100644 index 0000000000..8df2fd363a --- /dev/null +++ b/package/mpir/0003-fix-configure-with-gcc-14.patch @@ -0,0 +1,31 @@ +From 4ff3b770cbf86e29b75d12c13e8b854c74bccc5a Mon Sep 17 00:00:00 2001 +From: Reno Dakota +Date: Wed, 4 Dec 2024 23:09:03 +0000 +Subject: [PATCH] fix configure with gcc-14 + +move function definition above caller to fix compile error + +> configure:6438: gcc -m64 conftest.c >&5 +> conftest.c: In function 'f': +> conftest.c:13:44: error: implicit declaration of function 'h' [-Wimplicit-function-declaration] + +Upstream: https://github.com/wbhart/mpir/commit/4ff3b770cbf86e29b75d12c13e8b854c74bccc5a +Signed-off-by: Bernd Kuhls +--- + acinclude.m4 | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/acinclude.m4 b/acinclude.m4 +index 620a629ef..cd917567f 100644 +--- a/acinclude.m4 ++++ b/acinclude.m4 +@@ -590,8 +590,8 @@ extern + __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