Gentoo Archives: gentoo-dev

From: Nathan Phillip Brink <binki@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] demanual update (was: Don't use / when applying sed with CFLAGS)
Date: Tue, 28 Jun 2011 19:23:26
Message-Id: 20110628190400.GT8077@ohnopublishing.net
In Reply to: Re: [gentoo-dev] demanual update (was: Don't use / when applying sed with CFLAGS) by Peter Volkov
1 On Tue, Jun 28, 2011 at 10:24:26PM +0400, Peter Volkov wrote:
2 > ?? ??????, 28/06/2011 ?? 12:23 -0400, Mike Frysinger ??????????:
3 > > On Tuesday, June 28, 2011 02:54:03 Micha?? G??rny wrote:
4 > > > emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}"...
5 > >
6 > > this is easily dangerous when it comes to packages (and many do) that append
7 > > in the Makefile. specifying on the command line blocks those while passing
8 > > via env works fine. i'm not sure it's appropriate to provide as an example.
9 >
10 > Hm, I'm not sure I understand what you are talking about here. Could you
11 > provide example?
12
13 I think he's referring to somethine like:
14
15 Makefile:
16 CFLAGS += `pkg-config --cflags libxml-2.0`
17
18 which would work fine for:
19 emake
20
21 but which would override the pkg-config flags if you do:
22 emake CFLAGS="${CFLAGS}"
23
24 --
25 binki

Replies