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:37 +0000 |
| commit | ae32fed70e310d3e668ae5a27fb6a434d871ac5d (patch) | |
| tree | 24654e9af6dedf36e9ef87da4b6f94a33690d449 | |
| parent | cefc40389e3185c3728c8154dae602a4a11e2f55 (diff) | |
| download | poky-ae32fed70e310d3e668ae5a27fb6a434d871ac5d.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]
(From OE-Core rev: 15b3324b769dc92e1b0d4b9da9fbfccbc8dde9dd)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -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 a266f16edf..4c3eea6851 100644 --- a/meta/recipes-devtools/gcc/gcc-target.inc +++ b/meta/recipes-devtools/gcc/gcc-target.inc | |||
| @@ -166,3 +166,12 @@ do_install () { | |||
| 166 | 166 | ||
| 167 | chown -R root:root ${D} | 167 | chown -R root:root ${D} |
| 168 | } | 168 | } |
| 169 | |||
| 170 | # Installing /usr/lib/gcc/* means we'd have two copies, one from gcc-cross | ||
| 171 | # and one from here. These can confuse gcc cross where includes use #include_next | ||
| 172 | # and builds track file dependencies (e.g. perl and its makedepends code). | ||
| 173 | # For determinism we don't install this ever and rely on the copy from gcc-cross. | ||
| 174 | # [YOCTO #7287] | ||
| 175 | sysroot_stage_dirs_append () { | ||
| 176 | rm -rf $to${libdir}/gcc | ||
| 177 | } | ||
