]> code.ossystems Code Review - openembedded-core.git/commit
gcc-4.6: Add fix for relocation problem and ccache
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 13 Apr 2012 13:13:48 +0000 (14:13 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 13 Apr 2012 13:26:39 +0000 (14:26 +0100)
commitd3a3e81869631ba69874f6fc172240e3aac388f5
tree443a04059d5554a08a34c24b0f074938475ad62b
parentcb940f46efacddc7200581edba034e4201abb94a
gcc-4.6: Add fix for relocation problem and ccache

If the toolchain is reused from sstate and ccache is installed, build failures
were occuring due to gcc trying to access the original sysroot rather than the
new one, particularly if the old sysroot existed but was not readable by the
current user.

This turns out of the an issue inside gcc to do with preservation of the sysroot
option. See the gcc patch for more details. It only triggers when preprocessed
sources are used which happens when ccache is used.

The same issue occurs with c++ and c++-cpp-output so the same fix is applied there.

[YOCTO #2074]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/gcc/gcc-4.6.inc
meta/recipes-devtools/gcc/gcc-4.6/cpp-honour-sysroot.patch [new file with mode: 0644]