crosstool-ng/config
Nik Konyuchenko 05c6758985 Fix build of older Glibc using GCC >=10
Issue #1535

GCC 10 changed the default to -fno-common, which leads to a linking error in GLibc older than 2.30.

This change adds -fcommon cflag for the target GLibc versions <=2.29 and GCC >=10.

This change also adds additional cflags for the target GLibc to disable
new GCC11 checks that lead to compilation errors.

Signed-off-by: Nik Konyuchenko <spaun2002mobile@gmail.com>
2021-06-24 00:58:32 -07:00
..
arch alpha: Support 64-bit only 2021-05-11 21:02:22 +12:00
binutils enable option for binutils deterministic-archives 2019-10-10 21:39:29 +02:00
cc gcc: Make CC_GCC_TM_CLONE_REGISTRY tristate 2021-06-20 11:37:00 +12:00
comp_libs newlib: Add libstdc++ nano-specific CXXFLAGS 2021-06-07 19:53:28 +09:00
comp_tools Meet our new companion tool, bison 2019-03-04 00:22:02 -08:00
debug GDB 8.3+ needs IPv6 2019-10-02 09:35:46 -07:00
global Clarify tree layout of local patches directory 2020-10-13 16:09:35 +07:00
kernel Add PRU cross tool target 2021-01-19 21:18:55 +02:00
libc Fix build of older Glibc using GCC >=10 2021-06-24 00:58:32 -07:00
binutils.in Restrict flat format to architectures that support it 2018-12-01 15:08:46 -08:00
cc.in Switch gen-kconfig to new framework 2017-07-08 10:57:56 -07:00
comp_libs.in Make comp.libs use generated templates, too 2017-11-29 23:44:49 -08:00
comp_tools.in Switch gen-kconfig to new framework 2017-07-08 10:57:56 -07:00
config.in config: Update environment variable usage 2021-02-02 20:06:32 +13:00
configure.in.in Add picolibc support [v2] 2020-09-01 09:42:53 -07:00
debug.in Get rid of config.gen 2017-04-22 18:41:50 -07:00
global.in config: Update environment variable usage 2021-02-02 20:06:32 +13:00
kernel.in Don't enable "shared flat" 2019-02-21 21:18:37 -08:00
libc.in Also upgrade non-generated config files 2017-07-08 10:57:56 -07:00
target.in Set --with-cpu-{32,64} for multilib builds 2020-02-26 11:05:19 -08:00
test_suite.in all: unmark experimental features 2012-12-26 20:05:19 +01:00
toolchain.in Add config flags for omitting 'arch' and 'vendor' 2018-12-10 01:10:01 -08:00