]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
gcc: make include poisoning fatal again in gcc/g++
authorRoss Burton <ross.burton@arm.com>
Tue, 21 Jan 2025 18:23:09 +0000 (18:23 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 22 Jan 2025 13:20:20 +0000 (13:20 +0000)
commit56f21a02c009cb74072ee79467a5bcab3c4643a5
tree7416749d62531df93cfe12bd50ed88db78bfe011
parent5b413d1fdb4bdbaec86d630bb52c3ccf68aae789
gcc: make include poisoning fatal again in gcc/g++

We have a patch to allow us to 'poison' system include directories,
which are warnings by default but we make them fatal in cross builds.

However, in the 13.1 upgrade[1] the patch to make the warnings fatal was
dropped in the compiler invocation, so it only took effect for pure
preprocessor calls. This was not noticed at the time as the test case
was flawed, but this has now been fixed.

Add back the fatal poisoning, and restructure the patch slightly so it
is less invasive.

[1] oe-core bea46612fd9106cc5b46eb1d81623b6492563c13

[RP: Tweak to fix gcc/gcc-cross-canadian failure]
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/gcc/gcc/0002-gcc-poison-system-directories.patch