On Tue, 28 Jun 2011 10:16:06 +0400 Peter Volkov <p...@gentoo.org> wrote:
> But still our documentation explicitly suggests ':' for CFLAGS cases > and example allows bash substitution. > > http://devmanual.gentoo.org/ebuild-writing/functions/src_compile/building/index.html > see example in "Fixing Compiler Usage" section and text below: > sed -i -e "s:cc -O2:$(tc-getCC) ${CFLAGS} ${LDFLAGS}:" build.sh > > Are there any objections to suggest '|' for CFLAGS, LDFLAGS (see > attachment)? I think that also a good idea may be to provide an Makefile example, showing that often sed is unnecessary, and it's enough to do things like: emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}"... -- Best regards, Michał Górny
signature.asc
Description: PGP signature