commit: 1c4f0ec775955c5fa1563d49bfa8f3757a430754 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> AuthorDate: Sat Aug 30 13:02:00 2025 +0000 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> CommitDate: Sat Aug 30 13:05:25 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1c4f0ec7
wine.eclass: keep -std=* for cross flags Closes: https://bugs.gentoo.org/962175 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> eclass/wine.eclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eclass/wine.eclass b/eclass/wine.eclass index a92f01f9e37c..9db7c18a4e26 100644 --- a/eclass/wine.eclass +++ b/eclass/wine.eclass @@ -469,8 +469,9 @@ _wine_flags() { # are on their own just like with USE=custom-cflags. local flag flags=${CFLAGS} CFLAGS=-O2 # not get-flag() given it returns only the first occurence + # TODO: can drop |-std=* when <wine-10 is gone for flag in ${flags}; do - [[ ${flag} == @(-g*|-O[0-1g]) ]] && CFLAGS+=" ${flag}" + [[ ${flag} == @(-g*|-O[0-1g]|-std=*) ]] && CFLAGS+=" ${flag}" done else # many hardening options are unlikely to work right
