diff --git a/srcpkgs/binutils/template b/srcpkgs/binutils/template index a071c20d3f..9cb49795db 100644 --- a/srcpkgs/binutils/template +++ b/srcpkgs/binutils/template @@ -1,7 +1,7 @@ # Template file for 'binutils' pkgname=binutils version=2.23.52.0.2 -revision=6 +revision=7 short_desc="GNU binary utilities" maintainer="Juan RP " homepage="http://www.gnu.org/software/binutils/" @@ -15,11 +15,7 @@ if [ "$CHROOT_READY" ]; then hostmakedepends="flex perl" fi -makedepends="zlib-devel" - -if [ "$CROSS_BUILD" ]; then - makedepends+=" libfl-devel" -fi +makedepends="libfl-devel zlib-devel" pre_configure() { # Drop bashism! @@ -70,9 +66,9 @@ do_install() { fi make DESTDIR=${DESTDIR} tooldir=/usr install - # Remove ld.bfd (hardlink) and make a symlink. - rm -f ${DESTDIR}/usr/bin/ld.bfd - ln -sfr ${DESTDIR}/usr/bin/ld ${DESTDIR}/usr/bin/ld.bfd + # Remove ld (hardlink) and make a symlink to ld.bfd. + rm -f ${DESTDIR}/usr/bin/ld + ln -sfr ${DESTDIR}/usr/bin/ld.bfd ${DESTDIR}/usr/bin/ld # Add some useful headers install -m644 include/libiberty.h ${DESTDIR}/usr/include