Gentoo Archives: gentoo-dev

From: Mike Frysinger <vapier@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] net-misc/pimd RFC for new ebuild
Date: Tue, 19 Jul 2011 18:42:23
Message-Id: CAJaTeTq=-_0iptHVCiWGP3Y_q1cc_KmVLnYv7nv6mve+4-DP_A@mail.gmail.com
In Reply to: Re: [gentoo-dev] net-misc/pimd RFC for new ebuild by Kacper Kowalik
1 On Tue, Jul 19, 2011 at 14:32, Kacper Kowalik wrote:
2 > W dniu 19.07.2011 19:31, Donnie Berkholz pisze:
3 >> On 11:43 Sun 17 Jul     , Kacper Kowalik wrote:
4 >>> W dniu 17.07.2011 10:45, Kfir Lavi pisze:
5 >>>> src_compile() {
6 >>>>     emake CC=$(tc-getCC) || die
7 >>>> }
8 >>>
9 >>> Some systems export CC as "gcc -m64".
10 >>
11 >> I guess I'm a little confused here. What exactly is the problem and fix
12 >> you're proposing? You stopped halfway through, there should've been a
13 >> part at the end that said:
14 >>
15 >> ", so you need to do XX to avoid YY from happening".
16 >
17 > Use quotes: CC="$(tc-getCC)". Without it you could get emake CC=gcc -m64
18 > and that would of course fail.
19
20 CC="gcc -m64" is a fairly questionable setting in the first place
21 (you're most likely doing something wrong/stupid already), but quoting
22 the CC arg on the cmdline as suggested is the right thing.
23 -mike

Replies

Subject Author
Re: [gentoo-dev] net-misc/pimd RFC for new ebuild Kacper Kowalik <xarthisius@g.o>
Re: [gentoo-dev] net-misc/pimd RFC for new ebuild Donnie Berkholz <dberkholz@g.o>