On 14:40 Tue 19 Jul , Mike Frysinger wrote: > On Tue, Jul 19, 2011 at 14:32, Kacper Kowalik wrote: > > W dniu 19.07.2011 19:31, Donnie Berkholz pisze: > >> On 11:43 Sun 17 Jul , Kacper Kowalik wrote: > >>> W dniu 17.07.2011 10:45, Kfir Lavi pisze: > >>>> src_compile() { > >>>> emake CC=$(tc-getCC) || die > >>>> } > >>> > >>> Some systems export CC as "gcc -m64". > >> > >> I guess I'm a little confused here. What exactly is the problem and fix > >> you're proposing? You stopped halfway through, there should've been a > >> part at the end that said: > >> > >> ", so you need to do XX to avoid YY from happening". > > > > Use quotes: CC="$(tc-getCC)". Without it you could get emake CC=gcc -m64 > > and that would of course fail. > > CC="gcc -m64" is a fairly questionable setting in the first place > (you're most likely doing something wrong/stupid already), but quoting > the CC arg on the cmdline as suggested is the right thing.
Ah, yeah, I was forgetting that an extra level of quoting is required for that use. Weren't we just saying that `VAR=foo emake` would be better than `emake VAR=foo`, though, to avoid screwing up packages that mangle those variables? And in that case I don't think it would need quotes. -- Thanks, Donnie Donnie Berkholz Council Member / Sr. Developer Gentoo Linux Blog: http://dberkholz.com
pgpiK3wMnJHFS.pgp
Description: PGP signature