[arch-general] How best to downgrade gcc to 4.4 or 4.3?

David C. Rankin drankinatty at suddenlinkmail.com
Sun Feb 13 22:52:48 EST 2011

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} \

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

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

More information about the arch-general mailing list