From 0042df2bf59960f3de3422dd7f2d2efa605b0bb6 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Tue, 19 Nov 2024 23:07:55 -0500 Subject: [PATCH] sci-mathematics/glpk: fix the build with gcc-15 Closes: https://bugs.gentoo.org/943883 Signed-off-by: Michael Orlitzky --- sci-mathematics/glpk/glpk-5.0-r3.ebuild | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sci-mathematics/glpk/glpk-5.0-r3.ebuild b/sci-mathematics/glpk/glpk-5.0-r3.ebuild index 477d3016240a0..15451c216ae9c 100644 --- a/sci-mathematics/glpk/glpk-5.0-r3.ebuild +++ b/sci-mathematics/glpk/glpk-5.0-r3.ebuild @@ -48,6 +48,10 @@ src_prepare() { use odbc && [[ -z $(type -P odbc_config) ]] && \ append-cppflags $($(tc-getPKG_CONFIG) --cflags libiodbc) + # Newer GNU standards fail to compile thanks to "bool", while using + # ISO C17 breaks thread safety... and also fails to compile. + append-cflags -std=gnu17 + default eautoreconf