gcc-cross: Don't stage libiberty.a in sysroot.
authorKhem Raj <raj.khem@gmail.com>
Tue, 8 Jun 2010 02:57:55 +0000 (19:57 -0700)
committerKhem Raj <raj.khem@gmail.com>
Tue, 8 Jun 2010 02:59:20 +0000 (19:59 -0700)
* 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>
recipes/gcc/gcc-package-cross.inc

index 5236928..95936ed 100644 (file)
@@ -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
 }