[LTP] LTP compilation broken with -fno-common

Cyril Hrubis
2020-04-01T10:50:55Z

Hi!
> > The problem here is that gcc10 forbids variables in headers, moving it
> > anywhere int the header wouldn't help.
>
> I don't think GCC cares about where exactly the variable came from. It's
> only refusing to link multiple definitions of the same symbol. So if we
> move the TCID definition into the TST_NO_DEFAULT_MAIN guard block, GCC
> linker should stop complaining because the symbol name will become unique.

See:

https://gcc.gnu.org/gcc-10/porting_to.html

--
Cyril Hrubis
chrubis@suse.cz