[Top][All Lists]

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

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

From: Ronan Keryell
Subject: Re: [Qemu-devel] [PATCH] CPPFLAGS+= in Makefile.target
Date: Mon, 28 Jan 2008 10:09:58 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

>>>>> 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.

Hmmm... GNU make evolves more rapidly than my brain... :-)
  Ronan KERYELL                 |\/  Tel:    (+33|0)
  Département Informatique      |/)  Fax:    (+33|0)
  TÉLÉCOM Bretagne, CS 83818    K    GSM:    (+33|0)
  F-29238 PLOUZANÉ CEDEX 3      |\   E-mail: address@hidden
  FRANCE                        | \  http://enstb.org/~keryell

reply via email to

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