[oe-commits] Richard Purdie : gcc-target: Don't install target gcc libdir files

git at git.openembedded.org git at git.openembedded.org
Fri Feb 13 14:49:57 UTC 2015


Module: openembedded-core.git
Branch: master
Commit: 15b3324b769dc92e1b0d4b9da9fbfccbc8dde9dd
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=15b3324b769dc92e1b0d4b9da9fbfccbc8dde9dd

Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date:   Fri Feb 13 13:05:59 2015 +0000

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 at linuxfoundation.org>

---

 meta/recipes-devtools/gcc/gcc-target.inc | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/meta/recipes-devtools/gcc/gcc-target.inc b/meta/recipes-devtools/gcc/gcc-target.inc
index a266f16..4c3eea6 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
+}



More information about the Openembedded-commits mailing list