[PyQt] Re: More recent g++ slows build time immensely
Adeodato Simó
dato at net.com.org.es
Fri Oct 31 12:13:30 GMT 2008
* Giovanni Bajo [Fri, 31 Oct 2008 13:01:07 +0100]:
> On 10/31/2008 12:57 PM, Adeodato Simó wrote:
>> * Giovanni Bajo [Mon, 27 Oct 2008 19:28:24 +0100]:
>>> On 10/27/2008 4:52 PM, Jim Crowell wrote:
>>>> Downgrading gcc and g++ from 4.2 to 4.1 decreased build time from about
>>>> 15 minutes to 13.6 seconds.
>>> BTW, you can use the following commands to configure
>>> update-alternatives to handle GCC:
>>> $ sudo update-alternatives --install /usr/bin/gcc gcc
>>> /usr/bin/gcc-4.1 33 --slave /usr/bin/g++ g++ /usr/bin/g++-4.1 --slave
>>> /usr/bin/gcov gcov /usr/bin/gcov-4.1
>>> $ sudo update-alternatives --install /usr/bin/gcc gcc
>>> /usr/bin/gcc-4.2 42 --slave /usr/bin/g++ g++ /usr/bin/g++-4.2 --slave
>>> /usr/bin/gcov gcov /usr/bin/gcov-4.2
>> That breaks your system.
> Can you please elaborate? It seems to work for me.
Ok, that was a bit unfortunate of a wording on my part. What I meant is:
"that works, but is going against what the distribution expects from
you, namely that you don't alter files under /usr (minus /usr/local).
Because of that, the package manager may overwrite your symlinks at any
time, particularly when an upgrade of the "gcc" package comes".
One cleaner option is putting gcc/g++ symlinks pointing to the desired
version in /usr/loca/bin, or ~/bin.
Cheers,
--
Adeodato Simó dato at net.com.org.es
Debian Developer adeodato at debian.org
«¡Pero si es tan español que debe de tener el cerebro en forma de botijo,
con pitorro y todo!»
-- Javier Cercas, “La velocidad de la luz”
More information about the PyQt
mailing list