Cross-compilation broken (was: Re: Linux 2.6.11-rc1)

Geert Uytterhoeven
2005-01-16T09:23:24Z

On Tue, 11 Jan 2005, Linus Torvalds wrote:
> Sam Ravnborg:
> o kbuild: Use -isystem `gcc --print-file-name=include`

This change broke cross-compilation for me.

It causes /usr/lib/gcc-lib/i486-linux/3.3.5/include/stdarg.h to be picked up
instead of /usr/local/lib/gcc-lib/m68k-linux/2.95.2/include/stdarg.h.

Changing

| NOSTDINC_FLAGS := -nostdinc -isystem $(shell $(CC) -print-file-name=include)

to

| NOSTDINC_FLAGS = -nostdinc -isystem $(shell $(CC) -print-file-name=include)

fixed it. I guess it picked up the definition for $(CC) before it became
$(CROSS_COMPILE)gcc.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds