lkml.org 
[lkml]   [2006]   [Jan]   [1]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
FromKeith Owens <>
SubjectRe: Howto set kernel makefile to use particular gcc
DateSun, 01 Jan 2006 22:18:27 +1100
Marc Giger (on Sun, 1 Jan 2006 12:13:03 +0100) wrote:
>Why would you "hardwire" it?
>#export CC="distcc"
>should do it.

Doubt it.  From 'info make', Node: Environment.

   Variables in `make' can come from the environment in which `make' is
  run.  Every environment variable that `make' sees when it starts up
  is transformed into a `make' variable with the same name and value.
  But an explicit assignment in the makefile, or with a command
  argument, overrides the environment.  (If the `-e' flag is specified,
  then values from the environment override assignments in the
  makefile.  *Note Summary of Options: Options Summary.  But this is
  not recommended practice.)

The kernel Makefile explicitly sets CC which overrides the environment
value, but does not override a command line definition of CC.  IOW, do
not reply on environment variables always working with make.

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

\
 
 \ /
  Last update: 2006-01-01 11:22    [from the cache]
©2003-2008