wok-stable rev 10029

binutils: clean receipt
author Christophe Lincoln <pankso@slitaz.org>
date Fri May 20 01:21:08 2011 +0200 (2011-05-20)
parents 1a839851e167
children 5a24b1cc7c00
files binutils/receipt
line diff
     1.1 --- a/binutils/receipt	Fri May 20 01:20:12 2011 +0200
     1.2 +++ b/binutils/receipt	Fri May 20 01:21:08 2011 +0200
     1.3 @@ -52,22 +52,17 @@
     1.4  	$src/configure \
     1.5  		--program-prefix=$TOOLPREFIX \
     1.6  		--enable-shared \
     1.7 -		--build=$BUILD_HOST \
     1.8 -		--host=$BUILD_HOST &&
     1.9 +		$CONFIGURE_ARGS &&
    1.10  	make tooldir=/usr &&
    1.11 -	# Install in binutils-build/ and then move the files to
    1.12 -	# to the source tree. Can't install directly... This is done
    1.13 -	# to keep the $src and $_pkg working for genpkg.
    1.14  	make tooldir=/usr install &&
    1.15 -	# This is the default binutils, so create symlinks
    1.16 -	# to the target platform binutil binaries.
    1.17 -	# Delete duplicate binaries to save space.
    1.18 -	for binutil in $(ls -1 $DESTDIR/usr/bin/ | grep "${TOOLPREFIX}") ; do
    1.19 -		genericBinutilPath="$DESTDIR/usr/bin/$(echo "$binutil" | sed "s:$TOOLPREFIX::g")"
    1.20 -		if [ -e $genericBinutilPath ] ; then
    1.21 -			rm -f $genericBinutilPath
    1.22 +	# This is the default binutils, so create symlinks to the target platform
    1.23 +	# binutil binaries. Delete duplicate binaries to save space.
    1.24 +	for binutil in $(ls -1 $DESTDIR/usr/bin | grep "${TOOLPREFIX}") ; do
    1.25 +		path="$DESTDIR/usr/bin/$(echo "$binutil" | sed "s:$TOOLPREFIX::g")"
    1.26 +		if [ -e $path ] ; then
    1.27 +			rm -f $path
    1.28  		fi
    1.29 -		ln -s $binutil $genericBinutilPath
    1.30 +		ln -s $binutil $path
    1.31  	done
    1.32  }
    1.33