commit:     0db5ce887b5732e201af1a8434d3fe719bb291fa
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Fri May 16 01:18:26 2025 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Fri May 16 01:59:37 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0db5ce88

wine.eclass: limit -std=gnu17 to <wine-10

chiitoo mentioned that (at least) 10.7 works without this, and
that the last needed fixes were in 10.0-rc1, so I tried 10.0
and it was also fine.

vanilla-9.0.1 does not seem to have received a hotfix for this and
still fails, there's also proton-9.0.4 to worry about so will just
keep passing it for <10 until they're gone.

Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 eclass/wine.eclass | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/eclass/wine.eclass b/eclass/wine.eclass
index 1f5885d89c6f..6d4de6d87183 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)

Reply via email to