Gentoo Archives: gentoo-dev

From: Peter Volkov <pva@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] demanual update (was: Don't use / when applying sed with CFLAGS)
Date: Tue, 28 Jun 2011 06:17:20
Message-Id: 1309241766.29577.32.camel@tablet
In Reply to: Re: [gentoo-dev] Don't use / when applying sed with CFLAGS by Fabian Groffen
1 В Пнд, 27/06/2011 в 17:01 +0200, Fabian Groffen пишет:
2 > On 27-06-2011 14:08:52 +0000, Justin Lecher wrote:
3 > > Please do not use / as seperater when using sed with CFLAGS. I came
4 > across a bug today where it failed for crossdev. Here the toolchain
5 > header paths in the cflags and consowuently the seds fail.
6
7 This is already documented (see link below).
8
9 > Please also don't use ':' as separator, as some platforms have options
10 > for their toolchain that includes colons.
11
12 But still our documentation explicitly suggests ':' for CFLAGS cases and
13 example allows bash substitution.
14
15 http://devmanual.gentoo.org/ebuild-writing/functions/src_compile/building/index.html
16 see example in "Fixing Compiler Usage" section and text below:
17 sed -i -e "s:cc -O2:$(tc-getCC) ${CFLAGS} ${LDFLAGS}:" build.sh
18
19 Are there any objections to suggest '|' for CFLAGS, LDFLAGS (see
20 attachment)?
21
22 --
23 Peter.

Attachments

File name MIME type
0001-Use-as-a-separator-for-sed-ing-CFLAGS.patch text/x-patch

Replies