From 584b25da7a81d2f08935256df3cf16a115001e9d Mon Sep 17 00:00:00 2001 From: Chris Packham Date: Mon, 8 May 2023 21:03:29 +1200 Subject: glibc: Disable -Werror with GCC13 and glibc <2.37 GCC13 picks up some new errors on older glibc versions. Disable -Werror automatically when these combinations are selected. Signed-off-by: Chris Packham --- config/libc/glibc.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'config') diff --git a/config/libc/glibc.in b/config/libc/glibc.in index 39ab7930..c5de44ce 100644 --- a/config/libc/glibc.in +++ b/config/libc/glibc.in @@ -406,13 +406,15 @@ config GLIBC_SSP # GCC9-related fixes were available in glibc 2.29 # GCC10-related fixes were available in glibc 2.31 # GCC11-related fixes were available in glibc 2.34 +# GCC13-related fixes were available in glibc 2.37 config GLIBC_ENABLE_WERROR bool "Enable -Werror during the build" depends on GCC_7_or_older || \ (GCC_8_or_later && !GCC_9_or_later && GLIBC_2_27_or_later) || \ (GCC_9_or_later && !GCC_10_or_later && GLIBC_2_29_or_later) || \ (GCC_10_or_later && !GCC_11_or_later && GLIBC_2_31_or_later) || \ - (GCC_11_or_later && GLIBC_2_34_or_later) + (GCC_11_or_later && !GCC_13_or_later && GLIBC_2_34_or_later) || \ + (GCC_13_or_later && GLIBC_2_37_or_later) default y help By default, glibc enables strict warning checks during the build. -- cgit v1.2.3