commit:     622b5a7261296f85a0894ade92a645dd07da0f08
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Dec  6 12:57:25 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Dec  6 13:03:25 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=622b5a72

sys-libs/ncurses: pass -std=gnu17 conditionally

Old compilers during Prefix bootstrap may not support it but they also
won't be defaulting to C23 so that's fine.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-libs/ncurses/ncurses-6.5_p20241109.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys-libs/ncurses/ncurses-6.5_p20241109.ebuild 
b/sys-libs/ncurses/ncurses-6.5_p20241109.ebuild
index df1dda200557..c95699da9f73 100644
--- a/sys-libs/ncurses/ncurses-6.5_p20241109.ebuild
+++ b/sys-libs/ncurses/ncurses-6.5_p20241109.ebuild
@@ -169,7 +169,7 @@ src_configure() {
        BUILD_CPPFLAGS+=" -D_GNU_SOURCE"
 
        # NCURSES_BOOL confusion, see 
https://lists.gnu.org/archive/html/bug-ncurses/2024-11/msg00010.html
-       append-cflags -std=gnu17
+       append-cflags $(test-flags-CC -std=gnu17)
 
        # Build the various variants of ncurses -- narrow, wide, and threaded. 
#510440
        # Order matters here -- we want unicode/thread versions to come last so 
that the

Reply via email to