[LTP] LTP compilation broken with -fno-common

Martin Doucha
2020-04-01T10:04:27Z

On 01. 04. 20 11:58, Cyril Hrubis wrote:
> 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.

--
Martin Doucha mdoucha@suse.cz
QA Engineer for Software Maintenance
SUSE LINUX, s.r.o.
CORSO IIa
Krizikova 148/34
186 00 Prague 8
Czech Republic