Re: How best to downgrade gcc to 4.4 or 4.3?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 02/13/2011 08:52 PM, David C. Rankin wrote:
> On 02/13/2011 07:07 PM, Allan McRae wrote:
>> That is not a downgrade but a separate package.   You will need to use something
>> like "CC=gcc-4.3 ./configure" in your PKGBUILD to use that gcc version.
>>
>> Allan
> 
> Oh, your good...
> 
>   I would have messed that up royally. Thanks for being clairvoyant :p
> 
>   Now to figure out how that figures in to cmake builds :)
> 

Looks like adding the following to the PKGBUILD works:

  cd ${srcdir}

  cmake ../ \
    -DCMAKE_C_COMPILER=${_c_compiler} \
    -DCMAKE_CXX_COMPILER=${_cxx_compiler} \
<snip>

is what will work. Let me know if this is the wrong way to do it. Thanks.


-- 
David C. Rankin, J.D.,P.E.


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux