lkml.org 
[lkml]   [1998]   [Dec]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 2.1.131 ac7 Makefile and CFLAGS
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/

\
 
 \ /
  Last update: 2005-03-22 13:46    [W:0.028 / U:2.568 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site