aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/gcc
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2010-06-07 19:57:55 -0700
committerKhem Raj <raj.khem@gmail.com>2010-06-07 19:59:20 -0700
commitbf1756a16e470a1f0f2195a1d293ab9680af5fac (patch)
treec1fede169302d53980154f4117ed6c7f41660d5e /recipes/gcc
parent48b5a0e69d868a069c1b6fc4605ed0e281ee07af (diff)
downloadopenembedded-bf1756a16e470a1f0f2195a1d293ab9680af5fac.tar.gz
openembedded-bf1756a16e470a1f0f2195a1d293ab9680af5fac.tar.bz2
openembedded-bf1756a16e470a1f0f2195a1d293ab9680af5fac.zip
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 <raj.khem@gmail.com>
Diffstat (limited to 'recipes/gcc')
-rw-r--r--recipes/gcc/gcc-package-cross.inc4
1 files changed, 3 insertions, 1 deletions
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
}