wok-next rev 20439

glibc: try to fix it again
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Feb 22 16:14:21 2018 +0200 (2018-02-22)
parents 2b85adc52ed3
children c67938ec0e0e
files glibc/receipt
line diff
     1.1 --- a/glibc/receipt	Thu Feb 22 15:24:46 2018 +0200
     1.2 +++ b/glibc/receipt	Thu Feb 22 16:14:21 2018 +0200
     1.3 @@ -74,9 +74,9 @@
     1.4  	# Read the INSTALL file in glibc. Also Glibc don't build with -Os flag.
     1.5  	unset CFLAGS CXXFLAGS
     1.6  	case $ARCH in
     1.7 -		i386)   Arch='i486';;
     1.8 -		x86_64) Arch='nocona';;
     1.9 -		*)      Arch="$ARCH";;
    1.10 +		i?86)   Arch='i486';   ARCH_ARGS='-m32';;
    1.11 +		x86_64) Arch='nocona'; ARCH_ARGS='-m64';;
    1.12 +		*)      Arch="$ARCH";  ARCH_ARGS='';;
    1.13  	esac
    1.14  	echo "CFLAGS += -O2 -march=$Arch -mtune=$Arch" > configparms
    1.15  
    1.16 @@ -89,7 +89,7 @@
    1.17  	# put the exact or lower numbers. From Glibc INSTALL:
    1.18  	# > The higher the VERSION number is, the less compatibility code is
    1.19  	# > added, and the faster the code gets.
    1.20 -	CC="gcc -isystem /usr/lib/gcc/$BUILD_SYSTEM/$(. $WOK/gcc/receipt; echo $VERSION)/include \
    1.21 +	CC="gcc $ARCH_ARGS -isystem /usr/lib/gcc/$BUILD_SYSTEM/$(. $WOK/gcc/receipt; echo $VERSION)/include \
    1.22  	-isystem /usr/include" \
    1.23  	../configure \
    1.24  		--disable-werror \