main/binutils: fix crosscompiler packaging

This commit is contained in:
Timo Teräs 2013-09-23 12:56:33 +00:00
parent 0dceb86c0b
commit 057d88bfea

View File

@ -67,6 +67,11 @@ package() {
rmdir "$pkgdir"/usr/lib64
fi
rm "$pkgdir"/usr/lib/libiberty.a
if [ "$CHOST" != "$CTARGET" ]; then
# creating cross tools: remove any files that would conflict
# with the native tools, or other cross tools
rm -r "$pkgdir"/usr/share
fi
find "$pkgdir" -name "*.la" -delete
}