diff options
author | Alexey Neyman <stilor@att.net> | 2018-05-15 16:41:28 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-15 16:41:28 -0700 |
commit | d274ab06fe807b2a85223391de9aa484e9bbff08 (patch) | |
tree | 3de1fc2aadf622ce02226f254d908d39e25e3988 /config | |
parent | 844c83cac209ca7f99684dee14f1c3d64c6ee27e (diff) | |
parent | 37ac0e8474883ce9202ef4e08b7d9f9f66ea8a5d (diff) | |
download | crosstool-ng-d274ab06fe807b2a85223391de9aa484e9bbff08.tar.gz crosstool-ng-d274ab06fe807b2a85223391de9aa484e9bbff08.tar.bz2 crosstool-ng-d274ab06fe807b2a85223391de9aa484e9bbff08.zip |
Merge pull request #967 from stilor/fix-building-older-glibc
Fix building older glibc
Diffstat (limited to 'config')
-rw-r--r-- | config/libc/glibc.in | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/config/libc/glibc.in b/config/libc/glibc.in index a297bb15..5916a83c 100644 --- a/config/libc/glibc.in +++ b/config/libc/glibc.in @@ -320,4 +320,16 @@ config GLIBC_MIN_KERNEL default LINUX_VERSION if GLIBC_KERNEL_VERSION_AS_HEADERS default GLIBC_MIN_KERNEL_VERSION if GLIBC_KERNEL_VERSION_CHOSEN +# All supported versions of glibc build cleanly with GCC7 and earlier. +# GCC8-related fixes were only available in glibc 2.27. +config GLIBC_ENABLE_WERROR + bool "Enable -Werror during the build" + default y if GCC_7_or_older + default y if GCC_8_or_later && GLIBC_2_27_or_later + help + By default, glibc enables strict warning checks during the build. + However, older version of glibc may not build with newer versions + of the compiler than there were available at the time of a glibc + release (because newer compilers typically have better diagnostics). + endif # KERNEL_LINUX |