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.
-mike

Reply via email to