diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-02-13 13:05:59 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-02-13 14:49:31 +0000 |
commit | 15b3324b769dc92e1b0d4b9da9fbfccbc8dde9dd (patch) | |
tree | 311e52c48d2e2ea2e36b2a50a41a4b54d8349e10 /meta/recipes-devtools/gcc | |
parent | c8b7aad133c3e3319345d50f85a91cbd5116f842 (diff) | |
download | openembedded-core-contrib-15b3324b769dc92e1b0d4b9da9fbfccbc8dde9dd.tar.gz |
gcc-target: Don't install target gcc libdir files
Installing /usr/lib/gcc/* means we'd have two copies, one from gcc-cross
and one from here. These can confuse gcc cross where includes use #include_next
and builds track file dependencies (e.g. perl and its makedepends code).
For determinism we don't install this to the sysroot, ever and rely on the
copy from gcc-cross.
[YOCTO #7287]
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gcc')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-target.inc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-target.inc b/meta/recipes-devtools/gcc/gcc-target.inc index a266f16edf2..4c3eea6851d 100644 --- a/meta/recipes-devtools/gcc/gcc-target.inc +++ b/meta/recipes-devtools/gcc/gcc-target.inc @@ -166,3 +166,12 @@ do_install () { chown -R root:root ${D} } + +# Installing /usr/lib/gcc/* means we'd have two copies, one from gcc-cross +# and one from here. These can confuse gcc cross where includes use #include_next +# and builds track file dependencies (e.g. perl and its makedepends code). +# For determinism we don't install this ever and rely on the copy from gcc-cross. +# [YOCTO #7287] +sysroot_stage_dirs_append () { + rm -rf $to${libdir}/gcc +} |