]> code.ossystems Code Review - openembedded-core.git/commit
gcc-cross.inc: Prevent native sysroot from leaking into configargs.h
authorNathan Rossi <nathan@nathanrossi.com>
Mon, 25 Nov 2019 06:58:00 +0000 (06:58 +0000)
committerArmin Kuster <akuster808@gmail.com>
Sun, 15 Mar 2020 20:33:19 +0000 (13:33 -0700)
commit9bb270b3f12ff94b1541649078741e683020ffe9
tree625035eaf1646de6f557550ad68ad3039eb715a7
parentfdd3d65b690c9d460a5758cf1b83e7b2edfc9559
gcc-cross.inc: Prevent native sysroot from leaking into configargs.h

Prevent the native(sdk) 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 --version'. 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.

The sysroot path is replaced with a generic "/host" prefix which
represents the host sysroot (e.g. native or nativesdk).

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
(cherry picked from commit 84a78f46d59447eeec3d69532a7506148f64c979)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/recipes-devtools/gcc/gcc-cross.inc
meta/recipes-devtools/gcc/gcc-runtime.inc