commit:     8017296671ac17c48f70c888413b648b7b00400d
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 18 14:26:44 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Nov 18 14:27:48 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=80172966

dev-libs/gmp: build w/ -std=gnu17

Bug: https://gmplib.org/list-archives/gmp-bugs/2024-November/005550.html
Closes: https://bugs.gentoo.org/943710
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-libs/gmp/gmp-6.3.0-r1.ebuild | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/dev-libs/gmp/gmp-6.3.0-r1.ebuild b/dev-libs/gmp/gmp-6.3.0-r1.ebuild
index 1e060d527db6..2cef81b66de5 100644
--- a/dev-libs/gmp/gmp-6.3.0-r1.ebuild
+++ b/dev-libs/gmp/gmp-6.3.0-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -96,6 +96,8 @@ multilib_src_configure() {
        # 6.3.0 says it now supports LTO, but needs retesting on a variety
        # of platforms. Fix was maybe 
https://gmplib.org/repo/gmp-6.3/rev/9c324044f4b5.
        filter-lto
+       # https://gmplib.org/list-archives/gmp-bugs/2024-November/005550.html
+       append-cflags -std=gnu17
 
        # Because of our 32-bit userland, 1.0 is the only HPPA ABI that works
        # https://gmplib.org/manual/ABI-and-ISA.html#ABI-and-ISA (bug #344613)

Reply via email to