Add patch for GCC 15

This commit is contained in:
2025-07-07 21:55:20 +03:00
parent 56e8016d30
commit d3ddf308bc
3 changed files with 27 additions and 1 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
name: gmp
description: A free library for arbitrary precision arithmetic
version: 6.3.0
revision: 2
revision: 3
url: https://www.gnu.org/software/gmp/
license: GPL2-or-later,LGPL3-or-later
architecture: any
+21
View File
@@ -0,0 +1,21 @@
# HG changeset patch
# User Marc Glisse <[email protected]>
# Date 1738186682 -3600
# Node ID 8e7bb4ae7a18b1405ea7f9cbcda450b7d920a901
# Parent e84c5c785bbe8ed8c3620194e50b65adfc2f5d83
Complete function prototype in acinclude.m4 for C23 compatibility
diff -r e84c5c785bbe -r 8e7bb4ae7a18 acinclude.m4
--- a/acinclude.m4 Wed Dec 04 18:26:27 2024 +0100
+++ b/acinclude.m4 Wed Jan 29 22:38:02 2025 +0100
@@ -609,7 +609,7 @@
#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<n;i++){x=up[i];r=x+1;rp[i]=r;}}return c;}
+5
View File
@@ -10,6 +10,11 @@ FILENAME="${DOWNLOAD##*/}"
prepare() {
wget "$DOWNLOAD"
tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE"
# Apply patches
cd "$BPM_SOURCE"
patch -p1 < ../gcc-15.patch
autoreconf -fiv
}
# The build function is executed in the source directory