summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/gcc/gcc-target.inc9
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]
175sysroot_stage_dirs_append () {
176 rm -rf $to${libdir}/gcc
177}