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 20:00:35
Message-Id: CAJaTeTpEVM_renb_uOWmmNBaTZJxx2EozycbyP=ptuvH+cPGYg@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 15:51, Kacper Kowalik wrote:
2 > W dniu 19.07.2011 20:40, Mike Frysinger pisze:
3 >> On Tue, Jul 19, 2011 at 14:32, Kacper Kowalik wrote:
4 >>> W dniu 19.07.2011 19:31, Donnie Berkholz pisze:
5 >>>> On 11:43 Sun 17 Jul     , Kacper Kowalik wrote:
6 >>>>> W dniu 17.07.2011 10:45, Kfir Lavi pisze:
7 >>>>>> src_compile() {
8 >>>>>>     emake CC=$(tc-getCC) || die
9 >>>>>> }
10 >>>>>
11 >>>>> Some systems export CC as "gcc -m64".
12 >>>>
13 >>>> I guess I'm a little confused here. What exactly is the problem and fix
14 >>>> you're proposing? You stopped halfway through, there should've been a
15 >>>> part at the end that said:
16 >>>>
17 >>>> ", so you need to do XX to avoid YY from happening".
18 >>>
19 >>> Use quotes: CC="$(tc-getCC)". Without it you could get emake CC=gcc -m64
20 >>> and that would of course fail.
21 >>
22 >> CC="gcc -m64" is a fairly questionable setting in the first place
23 >> (you're most likely doing something wrong/stupid already),
24 >
25 > I've encountered it only once - during prefix bootstrap [1], but it did
26 > bite me in the ass back then. Exactly because somebody forgot to quote
27 > CC during emake invocation :)
28 >
29 > http://overlays.gentoo.org/proj/alt/browser/trunk/prefix-overlay/scripts/bootstrap-prefix.sh
30
31 i'm not sure that -m64 usage can be classified as anything other than
32 "questionable" :)
33 -mike