On Tue, 28 Jun 2011 22:24:26 +0400
Peter Volkov <[email protected]> wrote:
> В Втр, 28/06/2011 в 12:23 -0400, Mike Frysinger пишет:
> > On Tuesday, June 28, 2011 02:54:03 Michał Górny wrote:
> > > emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}"...
> >
> > this is easily dangerous when it comes to packages (and many do)
> > that append in the Makefile. specifying on the command line blocks
> > those while passing via env works fine. i'm not sure it's
> > appropriate to provide as an example.
>
> Hm, I'm not sure I understand what you are talking about here. Could
> you provide example?
>
if the makefile contains something like CFLAGS+="-DMYFEATURE=1" then
'emake CFLAGS="blah"' overrides it but 'CFLAGS="blah" emake' doesnt.
A.