christophe.varoqui@free.fr
2004-Jul-27 08:25 UTC
[klibc] warning killing for poor !LANG=C|US people
--- ../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 --
On Tue, Jul 27, 2004 at 05:24:24PM +0200, christophe.varoqui@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 -OsA better solution is to use: gcc_major := $(shell echo __GNUC__ | gcc -E -xc - | tail -n 1) Sam