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 |