diff --git a/eclass/wine.eclass b/eclass/wine.eclass index 1f5885d89c6f5..6d4de6d87183e 100644 --- a/eclass/wine.eclass +++ b/eclass/wine.eclass @@ -188,9 +188,8 @@ wine_src_configure() { # may segfault at runtime if used (bug #931329) filter-flags -Wl,--gc-sections - # avoid gcc-15's c23 default for now (bug #943849) - # TODO: verify if still needed and limit to old until cleanup - append-cflags -std=gnu17 + # avoid gcc-15's c23 default with older wine (bug #943849) + ver_test -lt 10 && append-cflags -std=gnu17 # Wine uses many linker tricks that are unlikely to work # with anything but bfd or lld (bug #867097)