wok-6.x diff glibc/receipt @ rev 11354

Up sslh (1.10)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Dec 01 11:36:59 2011 +0100 (2011-12-01)
parents 53b83e72d907
children 05dc6adaa091
line diff
     1.1 --- a/glibc/receipt	Sun May 22 16:34:20 2011 +0000
     1.2 +++ b/glibc/receipt	Thu Dec 01 11:36:59 2011 +0100
     1.3 @@ -28,23 +28,27 @@
     1.4  
     1.5  	# glibc no longer support i386, so use -march=i486 for better compatibility.
     1.6  	# If i686 ???
     1.7 +	unset CFLAGS CXXFLAGS
     1.8  	case $ARCH in
     1.9 -		i?86) echo "CFLAGS += -march=i486 -mtune=native" > configparms ;;
    1.10 +		i386|i486)
    1.11 +			echo "CFLAGS += -O2 -march=i486 -mtune=native" > configparms ;;
    1.12 +		*)
    1.13 +			echo "CFLAGS += -O2 -march=$ARCH -mtune=native" > configparms ;;
    1.14  	esac
    1.15  
    1.16  	{ $src/configure \
    1.17 -		--host=$BUILD_HOST \
    1.18 +		--host=$HOST_SYSTEM \
    1.19  		--build=$($src/scripts/config.guess) \
    1.20  		--disable-profile --enable-add-ons \
    1.21 -		--enable-kernel=2.6.22.5 --with-headers=/tools/include \
    1.22 +		--enable-kernel=2.6.30 --with-headers=/tools/include \
    1.23  		libc_cv_forced_unwind=yes libc_cv_c_cleanup=yes &&
    1.24  	make &&
    1.25  	make install
    1.26  	} || return 1
    1.27  
    1.28  	# Link compiler to this new glibc.
    1.29 -	SPECS=`dirname $($BUILD_HOST-gcc -print-libgcc-file-name)`/specs
    1.30 -	$BUILD_HOST-gcc -dumpspecs | sed \
    1.31 +	SPECS=`dirname $($HOST_SYSTEM-gcc -print-libgcc-file-name)`/specs
    1.32 +	$HOST_SYSTEM-gcc -dumpspecs | sed \
    1.33  		-e 's@/lib\(64\)\?/ld@/tools&@g' \
    1.34  		-e "/^\*cpp:$/{n;s,$, -isystem /tools/include,}" > $SPECS 
    1.35  	unset SPECS