Skip to contentSkip to conversation

Makefile bug with gcc 3.1 and non english locales

small BUG Edouard Gomez 2 participants 2 messages Jun 1, 2002

lore
Share & tools
lore
#0 lore raw

Hello,

well, if i use gcc 3.1 with the current Makefile, the gcc specific include dir is not well parsed in this expression :

kbuild_2_4_nostdinc := -nostdinc $(shell $(CC) -print-search-dirs | sed -ne 's/install: \(.*\)/-I \1include/gp')

because my system is fr_FR and the gcc output begins with :

Installé: ...

So i have to put LC_ALL=C before compiling the kernel.

I think you should set LC_ALL=C in the Makefile in order to avoid that problem with locales.

Regards

PS : Please CC me the answers.

Signature · 1 line
Edouard Gomez
#1 lore raw
Quoted 1 line · Edouard Gomez

kbuild_2_4_nostdinc := -nostdinc $(shell $(CC) -print-search-dirs | sed -ne 's/install: \(.*\)/-I \1include/gp')

Russell King suggested the following nice construct, which I'll submit for 2.5 shortly. It should work for you, too.

Quoted 8 lines

CFLAGS += -nostdinc -iwithprefix include

`-iwithprefix DIR'
Add a directory to the second include path. The directory's name is made by concatenating PREFIX and DIR, where PREFIX was specified previously with `-iprefix'. If you have not specified a prefix yet, the directory containing the installed passes of the compiler is used as the default.

--Kai