]> code.ossystems Code Review - openembedded-core.git/commit
gcc-target.inc: Prevent sysroot from leaking into configargs.h
authorNathan Rossi <nathan@nathanrossi.com>
Sat, 30 Nov 2019 10:47:24 +0000 (10:47 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 5 Dec 2019 20:35:27 +0000 (20:35 +0000)
commitb8d6e2ab68ee5e341fe970b191bfd334e6d2c40b
treea1082f4e66470501c5b0d4ccba5bbf5110ebbbb2
parenta4031935a7b8ea4f61b9020c1aa5598e186e7ad7
gcc-target.inc: Prevent sysroot from leaking into configargs.h

Prevent the full recipe-sysroot path from leaking into configargs.h. The
configargs.h header is intended to be static and unchanged as the
content is used as a means of determining that a gcc plugin is built for
the same gcc. This also effects the output of 'gcc -v'. Due to per
recipe sysroots and staging, the sysroot path would be replaced with the
sysroot local to the recipe thus changing the content of configargs.h.
This change also improves gcc binary reproducibility. The sysroot path
is replaced with the base target root "/".

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/gcc/gcc-target.inc