main/binutils: keep libiberty.a in normal build

some applications need it
This commit is contained in:
Timo Teräs 2013-10-20 20:09:50 +03:00
parent 846c523146
commit b3cd6c73bb

View File

@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=binutils
pkgver=2.23.2
pkgrel=3
pkgrel=4
pkgdesc="Tools necessary to build programs"
url="http://www.gnu.org/software/binutils/"
depends=
@ -66,11 +66,11 @@ package() {
mv "$pkgdir"/usr/lib64/* "$pkgdir"/usr/lib/
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
rm -f "$pkgdir"/usr/lib/libiberty.a
fi
find "$pkgdir" -name "*.la" -delete
}