[klibc] warning killing for poor !LANG=C|US people

Sam Ravnborg sam at ravnborg.org
Wed Jul 28 00:16:08 PDT 2004


On Tue, Jul 27, 2004 at 05:24:24PM +0200, christophe.varoqui at free.fr wrote:
> --- ../multipath-tools-0.2.8.1/klibc/klibc/arch/i386/MCONFIG    2004-07-20
> 10:51:42.000000000 +0200
> +++ klibc/klibc/arch/i386/MCONFIG       2004-07-27 17:10:12.000000000 +0200
> @@ -13,7 +13,7 @@
>  # them to be cdecl
>  # REGPARM = -mregparm=3 -DREGPARM
> 
> -gcc_major := $(shell $(CC) -v 2>&1 | awk '/gcc version/{print int($$3)}')
> +gcc_major := $(shell unset LANG;$(CC) -v 2>&1 | awk '/gcc version/{print
> int($$3)}')
> 
>  OPTFLAGS = $(REGPARM) -march=i386 -Os

A better solution is to use:
gcc_major := $(shell echo __GNUC__ | gcc -E -xc - | tail -n 1)

	Sam
	



More information about the klibc mailing list