qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] CPPFLAGS+= in Makefile.target


From: Thiemo Seufer
Subject: Re: [Qemu-devel] [PATCH] CPPFLAGS+= in Makefile.target
Date: Mon, 28 Jan 2008 11:35:00 +0000
User-agent: Mutt/1.5.17+20080114 (2008-01-14)

Ronan Keryell wrote:
> >>>>> On Fri, 25 Jan 2008 14:39:57 +0000, Paul Brook <address@hidden> said:
> 
>     >> Saying CPPFLAGS+= is much more convenient if for any reason the
>     >> external build environment would like to pass unusual CPPFLAGS.
> 
>     Paul> No. This doesn't do what you thing it does.  The most common way
>     Paul> of overriding these variables is to pass them on the
>     Paul> commandline, i.e. "make CPPFLAGS=-blah". This overrides all
>     Paul> assignments to that variable including +=.
> 
> By the way, it is possible to improve the GNU make weirdness :-) by
> playing with stuff like:
> 
> override CFLAGS += -g
> 
> Cf section 6.7 of the documentation.

IIRC the documentation warns against careless use of overrides.

> Hmmm... GNU make evolves more rapidly than my brain... :-)

It's only a decade old or so. :-)


Thiemo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]