]> code.ossystems Code Review - openembedded-core.git/commitdiff
gcc-target: Don't install target gcc libdir files
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 13 Feb 2015 13:05:59 +0000 (13:05 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 13 Feb 2015 14:49:31 +0000 (14:49 +0000)
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>
meta/recipes-devtools/gcc/gcc-target.inc

index a266f16edf2ae0c46c143b18063419504c9dd96e..4c3eea6851d9b903b47a4a05526720fd24028c70 100644 (file)
@@ -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
+}