On Tue, Jul 19, 2011 at 15:51, Kacper Kowalik wrote:
> W dniu 19.07.2011 20:40, Mike Frysinger pisze:
>> 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),
>
> I've encountered it only once - during prefix bootstrap [1], but it did
> bite me in the ass back then. Exactly because somebody forgot to quote
> CC during emake invocation :)
>
> http://overlays.gentoo.org/proj/alt/browser/trunk/prefix-overlay/scripts/bootstrap-prefix.sh

i'm not sure that -m64 usage can be classified as anything other than
"questionable" :)
-mike

Reply via email to