[klibc] warning killing for poor !LANG=C|US people
H. Peter Anvin
hpa at zytor.com
Tue Jul 27 14:00:42 PDT 2004
Sam Ravnborg wrote:
> 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)
>
Makes sense; I'll make this change.
-hpa
More information about the klibc
mailing list