diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-04-13 14:13:48 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-04-13 14:26:52 +0100 |
commit | 22aac28f28fe1e703fb66e304a41a31f7b600e8d (patch) | |
tree | c0c2fe537993cffb2def0b2c4b9f9be64c642033 /meta/recipes-devtools/gcc/gcc-4.6.inc | |
parent | 7b22df2e4b0269b5b91764a807d63e20268cc932 (diff) | |
download | poky-22aac28f28fe1e703fb66e304a41a31f7b600e8d.tar.gz |
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]
(From OE-Core rev: d3a3e81869631ba69874f6fc172240e3aac388f5)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-4.6.inc')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-4.6.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.6.inc b/meta/recipes-devtools/gcc/gcc-4.6.inc index d40a53412e..020e21b071 100644 --- a/meta/recipes-devtools/gcc/gcc-4.6.inc +++ b/meta/recipes-devtools/gcc/gcc-4.6.inc | |||
@@ -1,6 +1,6 @@ | |||
1 | require gcc-common.inc | 1 | require gcc-common.inc |
2 | 2 | ||
3 | PR = "r24" | 3 | PR = "r25" |
4 | 4 | ||
5 | # Third digit in PV should be incremented after a minor release | 5 | # Third digit in PV should be incremented after a minor release |
6 | # happens from this branch on gcc e.g. currently its 4.6.0 | 6 | # happens from this branch on gcc e.g. currently its 4.6.0 |
@@ -73,6 +73,7 @@ SRC_URI = "svn://gcc.gnu.org/svn/gcc/branches;module=${BRANCH};proto=http \ | |||
73 | file://gcc-arm-set-cost.patch \ | 73 | file://gcc-arm-set-cost.patch \ |
74 | file://GPLUSPLUS_INCLUDE_DIR_with_sysroot.patch \ | 74 | file://GPLUSPLUS_INCLUDE_DIR_with_sysroot.patch \ |
75 | file://fortran-cross-compile-hack.patch \ | 75 | file://fortran-cross-compile-hack.patch \ |
76 | file://cpp-honour-sysroot.patch \ | ||
76 | " | 77 | " |
77 | 78 | ||
78 | SRC_URI_append_sh3 = " file://sh3-installfix-fixheaders.patch " | 79 | SRC_URI_append_sh3 = " file://sh3-installfix-fixheaders.patch " |