# Depends on:
name=binutils
-version=2.23.1
-release=1
+version=2.25.1
+release=2
source=(ftp://ftp.gnu.org/gnu/$name/$name-$version.tar.bz2)
build() {
--host=$CTARGET \
--target=$CTARGET \
--prefix=/usr \
- --mandir=/usr/man \
--enable-shared \
- --disable-nls
+ --disable-nls \
+ --enable-ld=default \
+ --enable-gold=yes \
+ --enable-plugins \
+ --disable-werror
- make configure-host
make tooldir=/usr
- make check
make tooldir=/usr DESTDIR=$PKG install
- cp ../$name-$version/include/libiberty.h $PKG/usr/include
- rm -r $PKG/usr/share
+ install -m 0644 ../$name-$version/include/libiberty.h $PKG/usr/include
+
+ rm -r $PKG/usr/share/info
+ rm $PKG/usr/share/man/man1/{dlltool,nlmconv,windres,windmc}.1
sed -i "s|-L$SRC[^ ]* ||g" $PKG/usr/lib/libbfd.la
}