qemu fix for gcc3/4 mixed systems

Kok, Auke sofar at foo-projects.org
Sat Apr 21 02:58:09 CEST 2007


Terry Chan wrote:
> On Fri, Apr 20, 2007 at 10:40:59AM -0700, Kok, Auke wrote:
>> Terry,
>>
>> please apply this to your qemu module and see if it still builds OK. This will 
>> allow qemu to compile on gcc3-only and also gcc3/4 mixed systems
>>
>> Cheers,
>>
>> Auke
>>
>> ---
>> diff a/devel/qemu b/devel/qemu
>> --- a/devel/qemu/BUILD  2007-02-15 11:01:03.000000000 -0800
>> +++ b/devel/qemu/BUILD  2007-04-20 10:39:08.000000000 -0700
>> @@ -6,7 +6,9 @@
>>       OPTS+=" --target-list=i386-user,i386-softmmu,arm-user,sparc-user,ppc-user"
>>     fi
>>
>> -  default_build  &&
>> +  ./configure --prefix=/usr \
>> +                --cc=${GCC3_PREFIX:-/opt/lunar/gcc3}/bin/gcc &&
>> +  default_make  &&
>>
>>     # qemu-doc.html may not exist, but it will be ignored if that is the case
>>     gather_docs TODO qemu-doc.html
> --------------------------------------------------------------------------
> The above patch doesn't work on my lunar box as my only installed gcc is 3.4.6
> and is not located in /opt/lunar/gcc3. My gcc is in the normal location /usr/bin/gcc.
> Also on this box I've already done a lunar hold gcc.

hmm, yes, of course.

the fix would be to `set_config GCC3 ${MODULE_CONFIG}` in gcc3's POST_INSTALL I 
guess, but that would require people to either recompile gcc3 (no biggie) or 
manually just set the GCC3_PREFIX using `lunar set`.

hmm

Auke


More information about the Lunar-dev mailing list