]> git.ipfire.org Git - thirdparty/openwrt.git/commit
tools: gmp: fix compilation with GCC15
authorRobert Marko <robimarko@gmail.com>
Wed, 16 Apr 2025 12:04:26 +0000 (14:04 +0200)
committerRobert Marko <robimarko@gmail.com>
Fri, 25 Apr 2025 08:55:03 +0000 (10:55 +0200)
commitd9fccc8e1a246bfa10a62ffaf60328d7f65178ed
tree09cb2ea98a416f20fc5d030437594cee027588e4
parent1e51fd037d780725ca31cc92b39078468a383295
tools: gmp: fix compilation with GCC15

Fedora 42 updated to GCC15 which now defaults to GNU23 as the default
instead of GNU17[1], and this breaks GMP compilation by failing to find
a working compiler test.

Its been fixed upstream [2][3], so backport the fix to fix GCC15 compilation.

[1] https://gcc.gnu.org/gcc-15/porting_to.html#c23
[2] https://gmplib.org/repo/gmp/rev/8e7bb4ae7a18
[3] https://gmplib.org/repo/gmp/rev/d66d66d82dbb

Link: https://github.com/openwrt/openwrt/pull/18506
(cherry picked from commit 31800db91d43042813b7249a09fd61c356b39767)
Link: https://github.com/openwrt/openwrt/pull/18581
Signed-off-by: Robert Marko <robimarko@gmail.com>
tools/gmp/patches/001-acinclude-m4-fix-std23.patch [new file with mode: 0644]
tools/gmp/patches/002-acinclude-m4-add-parameter-names.patch [new file with mode: 0644]