Re: Problem with implicit rule for .o files and overriding of CXXFLAGS.
On Wednesday 25 June 2008, Yavor Doganov wrote:
--cut--
Hi,
> If you define
>
> CFLAGS = ...
>
> in debian/rules, this is a make variable, not an environment variable,
> and it won't propagate to sub-make.
>
> However, if you do
>
> $(MAKE) CFLAGS="$(CFLAGS)"
>
> that value will be used for the build and will override upstream's value,
> because variables defined on the command line override variables defined
> in the makefile.
This is true, unless the `override' directive is used in the makefile to
override variables set with a command line argument.
override var = val (for recursively expanded variables)
override var := val (for simply expanded variables)
override var += val (to append more chars to a variable set via cmd-line)
--
pub key ID 0E4BD0AB 2003-03-18 <people.fccf.net/danchev/key pgp.mit.edu>
Reply to: