Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JIPtk-0008Ue-GO for qemu-devel@nongnu.org; Fri, 25 Jan 2008 09:51:16 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JIPtg-0008Ri-Ns for qemu-devel@nongnu.org; Fri, 25 Jan 2008 09:51:16 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JIPtg-0008Re-Kn for qemu-devel@nongnu.org; Fri, 25 Jan 2008 09:51:12 -0500 Received: from smtp02.citrix.com ([66.165.176.63]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JIPtg-00008X-Ca for qemu-devel@nongnu.org; Fri, 25 Jan 2008 09:51:12 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18329.63185.661839.17070@mariner.uk.xensource.com> Date: Fri, 25 Jan 2008 14:48:49 +0000 Subject: Re: [Qemu-devel] [PATCH] CPPFLAGS+= in Makefile.target In-Reply-To: <18329.62928.792579.75725@mariner.uk.xensource.com> References: <18329.61367.473953.391435@mariner.uk.xensource.com> <200801251439.58215.paul@codesourcery.com> <18329.62928.792579.75725@mariner.uk.xensource.com> From: Ian Jackson Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paul Brook , qemu-devel@nongnu.org iwj writes ("Re: [Qemu-devel] [PATCH] CPPFLAGS+= in Makefile.target"): > Paul Brook writes ("Re: [Qemu-devel] [PATCH] CPPFLAGS+= in Makefile.target"): > > No. This doesn't do what you thing it does. > > The most common way of overriding these variables is to pass them on the > > commandline, i.e. "make CPPFLAGS=-blah". This overrides all assignments to > > that variable including +=. > > Err, yes (and this is annoying behaviour in make), but if > Makefile.target sets CPPFLAGS=-I... then even config.mak cannot > override it. Sorry, perhaps that was less than clear. What I mean is: if you want for any reason to build qemu in a weird way then you're going to have to edit config-host.mak (or somewhere similar) in any case. You probably want to set some CPPFLAGS as well as various other things. If you do this at the moment then you have to reproduce all of the CPPFLAGS -I settings and so on from Makefile.target in your own setting that you add to config-host.mak. With my change this is no longer needed: if you set CPPFLAGS in config-host.mak or some target's config.mak then the right -I's are automatically added later. Ian.