* 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>
do_install () {
oe_runmake 'DESTDIR=${D}' install
-
install -d ${D}${target_base_libdir}
install -d ${D}${target_libdir}
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
}