cookutils rev 414

cook: use the cross compiled strip if cross compiling
author Christophe Lincoln <pankso@slitaz.org>
date Mon May 14 13:38:16 2012 +0200 (2012-05-14)
parents 0951a386e1e6
children 999aed12cf89
files cook
line diff
     1.1 --- a/cook	Mon May 14 12:15:18 2012 +0200
     1.2 +++ b/cook	Mon May 14 13:38:16 2012 +0200
     1.3 @@ -378,11 +378,11 @@
     1.4  	for dir in $fs/bin $fs/sbin $fs/usr/bin $fs/usr/sbin $fs/usr/games
     1.5  	do
     1.6  		if [ -d "$dir" ]; then
     1.7 -			find $dir -type f -exec strip -s '{}' 2>/dev/null \;
     1.8 +			find $dir -type f -exec $STRIP -s '{}' 2>/dev/null \;
     1.9  		fi
    1.10  	done
    1.11 -	find $fs -name "*.so*" -exec strip -s '{}' 2>/dev/null \;
    1.12 -	find $fs -name "*.a" -exec strip --strip-debug '{}' 2>/dev/null \;
    1.13 +	find $fs -name "*.so*" -exec $STRIP -s '{}' 2>/dev/null \;
    1.14 +	find $fs -name "*.a" -exec $STRIP --strip-debug '{}' 2>/dev/null \;
    1.15  	status
    1.16  
    1.17  	# Remove Python .pyc and .pyo from packages.
    1.18 @@ -450,6 +450,8 @@
    1.19  			export STRIP=${HOST_SYSTEM}-strip
    1.20  			#export PKGCONFIG=${HOST_SYSTEM}-pkg-config
    1.21  			;;
    1.22 +		*)
    1.23 +			export STRIP=strip
    1.24  	esac
    1.25  
    1.26  	[ "$QA" ] && receipt_quality