From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Wood Date: Mon, 19 Oct 2009 16:56:37 -0500 Subject: [U-Boot] [PATCH 2/2] tools: Use override when changing CC, CFLAGS, etc. In-Reply-To: <200910191742.53914.vapier@gentoo.org> References: <20091019212435.GA31339@loki.buserror.net> <200910191742.53914.vapier@gentoo.org> Message-ID: <4ADCE095.1090301@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Mike Frysinger wrote: > On Monday 19 October 2009 17:24:35 Scott Wood wrote: >> If the user has specified a CC or similar on the command line, that is the >> cross compiler, not the host compiler. Override is needed to keep these >> assignments from being ignored in that case. > > then again, if we didnt mix host and target variable names, this wouldnt be a > problem. in a sane world, all of the host stuff would be HOSTXX (or BUILDXX). Right... I initially tried substituting in HOSTCC, but it still tried to use CC, probably from an implicit rule that would need to be made explicit in order to use HOSTCC. I can try to respin it with a new explicit rule if y'all want. -Scott