From 0db5ce887b5732e201af1a8434d3fe719bb291fa Mon Sep 17 00:00:00 2001 From: Ionen Wolkens Date: Thu, 15 May 2025 21:18:26 -0400 Subject: [PATCH] wine.eclass: limit -std=gnu17 to --- eclass/wine.eclass | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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)