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