# HG changeset patch # User Christophe Lincoln # Date 1305847268 -7200 # Node ID cc4ff3002e6ab787c1764284f6f8abeabf5578f7 # Parent 1a839851e16722100cc5517292c131c001bfb714 binutils: clean receipt diff -r 1a839851e167 -r cc4ff3002e6a binutils/receipt --- a/binutils/receipt Fri May 20 01:20:12 2011 +0200 +++ b/binutils/receipt Fri May 20 01:21:08 2011 +0200 @@ -52,22 +52,17 @@ $src/configure \ --program-prefix=$TOOLPREFIX \ --enable-shared \ - --build=$BUILD_HOST \ - --host=$BUILD_HOST && + $CONFIGURE_ARGS && make tooldir=/usr && - # Install in binutils-build/ and then move the files to - # to the source tree. Can't install directly... This is done - # to keep the $src and $_pkg working for genpkg. make tooldir=/usr install && - # This is the default binutils, so create symlinks - # to the target platform binutil binaries. - # Delete duplicate binaries to save space. - for binutil in $(ls -1 $DESTDIR/usr/bin/ | grep "${TOOLPREFIX}") ; do - genericBinutilPath="$DESTDIR/usr/bin/$(echo "$binutil" | sed "s:$TOOLPREFIX::g")" - if [ -e $genericBinutilPath ] ; then - rm -f $genericBinutilPath + # This is the default binutils, so create symlinks to the target platform + # binutil binaries. Delete duplicate binaries to save space. + for binutil in $(ls -1 $DESTDIR/usr/bin | grep "${TOOLPREFIX}") ; do + path="$DESTDIR/usr/bin/$(echo "$binutil" | sed "s:$TOOLPREFIX::g")" + if [ -e $path ] ; then + rm -f $path fi - ln -s $binutil $genericBinutilPath + ln -s $binutil $path done }