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

Geert Uytterhoeven
2005-01-17T09:00:42Z

On Sun, 16 Jan 2005, Sam Ravnborg wrote:
> On Sun, Jan 16, 2005 at 10:22:43AM +0100, Geert Uytterhoeven wrote:
> > 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.
>
> Main culprint here is m68k fiddelign with definition of CROSS_COMPILE in
> arch/m68k/Makefile.
> If I find no better fix I will take your version.

M68k isn't the only one. Other archs with builtin automatic support for
cross-compilation do it as well: mips, hppa, hppa64, h8300.

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