Re: 2.1.131 ac7 Makefile and CFLAGS

Rik van Riel (H.H.vanRiel@phys.uu.nl)
Thu, 10 Dec 1998 17:15:42 +0100 (CET)


On Wed, 9 Dec 1998, Zeph wrote:

> One thing Alan might want to do with ac8 is fix the CFLAGS in the
> Makefiles so that they at least include $(HOSTCFLAGS) for most
> instances of any optimization lines, since the default of -O2
> -fomit-frame-pointer I prefer to change on my own and have the
> changes reflected throughout the kernel build--I noticed the
> CFLAGS was completely independent of the HOSTCFLAGS, so I went
> through and changed most instances of CFLAGS to include
> $(HOSTCFLAGS)

This breaks cross-compilation.

HOSTCFLAGS is for compiling the xconfig program and stuff
like that. Suppose it includes '-m486'.

Now you want to cross-compile a kernel for SPARC, so you
feed '-m486' to your SPARC cross-compiler --> BANG!

HOSTCFLAGS should only be used for it's original purpose,
please use the appropriate flags for what you want to do...

cheers,

Rik -- the flu hits, the flu hits, the flu hits -- MORE
+-------------------------------------------------------------------+
| Linux memory management tour guide. H.H.vanRiel@phys.uu.nl |
| Scouting Vries cubscout leader. http://www.phys.uu.nl/~riel/ |
+-------------------------------------------------------------------+

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/