linux-mips
[Top] [All Lists]

Re: [PATCH] allow CROSS_COMPILE override

To: Daniel Jacobowitz <dan@debian.org>
Subject: Re: [PATCH] allow CROSS_COMPILE override
From: Brian Murphy <brian@murphy.dk>
Date: Thu, 20 Feb 2003 23:06:54 +0100
Cc: linux-mips@linux-mips.org
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20030220124703.H7466@mvista.com> <20030220215725.GA31222@nevyn.them.org>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020623 Debian/1.0.0-0.woody.1
Daniel Jacobowitz wrote:

Silly question: why does this matter if CROSS_COMPILE is on the command
line?  Command line definitions override anything in the makefile.  Is
it falling off the command line in a recursive make?
You need ?= to allow the define in the top level makefile to override that in
the sub-makefile. You also need it if you want to get the value from an
environment variable and not from something like this:

make CROSS_COMPILE=xxx

which is the only case where it works now.

/Brian



<Prev in Thread] Current Thread [Next in Thread>