commit: 08dc9bec045a5683f5628787aecdcd5657b8be1e Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Fri Dec 6 13:05:52 2024 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Fri Dec 6 13:05:52 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=08dc9bec
dev-libs/gmp: pass -std=gnu17 conditionally Old compilers during Prefix bootstrap may not support it but they also won't be defaulting to C23 so that's fine. (This doesn't fix bug #919935 but it means we don't make it worse. I'll fix that as well in a minute.) Bug: https://bugs.gentoo.org/919935 Signed-off-by: Sam James <sam <AT> gentoo.org> dev-libs/gmp/gmp-6.3.0-r1.ebuild | 2 +- 1 file changed, 1 insertion(+), 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 2cef81b66de5..8f0d8c759801 100644 --- a/dev-libs/gmp/gmp-6.3.0-r1.ebuild +++ b/dev-libs/gmp/gmp-6.3.0-r1.ebuild @@ -97,7 +97,7 @@ multilib_src_configure() { # 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 + append-cflags $(test-flags-CC -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)
