glibc: Re-enable Werror

Now that we have a 2-pass build it is no longer necessary to disable
-Werror in glibc.

This partially reverts commits 6ca5f91f ("Disable -Werror for GLIBC for
all ARCH for GCC11."), 215432d3 ("config/libc: Extend glibc 2.32
workaround to include sparc") and 645ee124 ("glibc: Don't build with
-Werror for powerpc64+glibc-2.32").

Signed-off-by: Chris Packham <judge.packham@gmail.com>
This commit is contained in:
Chris Packham 2021-11-21 20:51:17 +13:00
parent 557b9d4f8d
commit f58583039f

View File

@ -407,9 +407,6 @@ config GLIBC_SSP
# GCC8-related fixes were only available in glibc 2.27.
config GLIBC_ENABLE_WERROR
bool "Enable -Werror during the build"
default n if GLIBC_2_32_or_later && ARCH_POWERPC && ARCH_64
default n if GLIBC_2_32_or_later && ARCH_SPARC
default n if GLIBC_2_32_or_later && GCC_11_or_later
default y if GCC_7_or_older
default y if GCC_8_or_later && GLIBC_2_27_or_later
help