From: Khem Raj Date: Tue, 8 Jun 2010 02:57:55 +0000 (-0700) Subject: gcc-cross: Don't stage libiberty.a in sysroot. X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf1756a16e470a1f0f2195a1d293ab9680af5fac;p=openembedded.git gcc-cross: Don't stage libiberty.a in sysroot. * We already stage libiberty from target binutils problem is that when we stage it from gcc-cros it conflicts with the ones installed in cross dir by binutils-cross which should be used to link binutils for target but it picks up the one installed in the sysroot and caused numerous problems on building target binutils. Signed-off-by: Khem Raj --- diff --git a/recipes/gcc/gcc-package-cross.inc b/recipes/gcc/gcc-package-cross.inc index 5236928d83..95936ed7bb 100644 --- a/recipes/gcc/gcc-package-cross.inc +++ b/recipes/gcc/gcc-package-cross.inc @@ -17,7 +17,6 @@ FILES_libstdc++ = "${target_libdir}/libstdc++.so.*" do_install () { oe_runmake 'DESTDIR=${D}' install - install -d ${D}${target_base_libdir} install -d ${D}${target_libdir} @@ -49,5 +48,8 @@ do_install () { fi cd $currdir fi + # We use libiberty from binutils or binutils-cross + rm -f ${D}${libdir}/libiberty.a + rm -f ${D}${target_libdir}/libiberty.a }