[Aboriginal] lsi_scsi: error

Rob Landley rob at landley.net
Mon Oct 10 10:35:39 PDT 2011


On 10/10/2011 01:14 AM, John Spencer wrote:
> On 10/10/2011 03:08 AM, John Spencer wrote:
>>
>> btw, do you happen to know by chance why the kernel make disrespects
>> my CC/HOSTCC settings and uses gcc instead of distcc ?
> 
> nevermind, it seems the only way is to mess with the makefile, if you
> dont happen to use the usual prefixed crosstoolchain.

Make is horrible, here's how bits of the horror work:

Environment variables become the default values of make variables when
make starts, but there are two forms of assignment in make: ?= leaves a
variable alone if it already has a value, = overwrites unconditionally.
 Make developers tend to use the = without thinking about it.

To overcome this, variables assigned on the make command line become
read-only and cannot be overridden by make assignments.  (The
assignments are ignored.)  Thus you specify your architecture and cross
compiler on the command line, not in environment variables.

Then we get into recursive make, which is an abomination:

  http://aegis.sourceforge.net/auug97.pdf

And really, the whole of make has outlived its usefulness, but I've
ranted about that here (at length) before:

http://lists.landley.net/pipermail/aboriginal-landley.net/2011-June/000165.html

Rob

 1318268139.0


More information about the Aboriginal mailing list