Gentoo Archives: gentoo-dev

From: Fabian Groffen <grobian@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 06:26:18
Message-Id: 20110628062449.GC29104@gentoo.org
In Reply to: [gentoo-dev] demanual update (was: Don't use / when applying sed with CFLAGS) by Peter Volkov
1 On 28-06-2011 10:16:06 +0400, Peter Volkov wrote:
2 > Are there any objections to suggest '|' for CFLAGS, LDFLAGS (see
3 > attachment)?
4
5 Not from my side. It's what we've been using so far.
6
7 > <note>
8 > -When using <c>sed</c> with <c>CFLAGS</c> or <c>LDFLAGS</c>, it is not safe to use
9 > -a comma or a slash as a delimiter. The recommended character is a colon.
10 > +When using <c>sed</c> with <c>CFLAGS</c> or <c>LDFLAGS</c>, it is not safe to
11 > +use a comma, a colon or a slash as a delimiter. <c>gcc</c> options may contain
12
13 gcc -> gcc, ld, ar, etc.
14
15 > +this characters so <c>sed</c> will fail after bash expansion. The recommended
16 > +character is a vertical bar: '|' (the pipe).
17
18
19 --
20 Fabian Groffen
21 Gentoo on a different level