[oe-commits] Khem Raj : gcc-cross: Don't stage libiberty.a in sysroot.

git version control git at git.openembedded.org
Tue Jun 8 02:59:36 UTC 2010


Module: openembedded.git
Branch: org.openembedded.dev
Commit: bf1756a16e470a1f0f2195a1d293ab9680af5fac
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=bf1756a16e470a1f0f2195a1d293ab9680af5fac

Author: Khem Raj <raj.khem at gmail.com>
Date:   Mon Jun  7 19:57:55 2010 -0700

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 at gmail.com>

---

 recipes/gcc/gcc-package-cross.inc |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/recipes/gcc/gcc-package-cross.inc b/recipes/gcc/gcc-package-cross.inc
index 5236928..95936ed 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
 }
 





More information about the Openembedded-commits mailing list