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. |