Search:  
Gentoo Wiki

TIP_GCC_performance

Warning: The following tips are not recommended. There are sensible reasons why things are the way they are and changing them can break packages.

These two tricks just halfed my mozila-firefox build time:

Force parallel make for almost all packages

Although you have MAKEFLAGS="-j5" in your /etc/make.conf, packages like www-client/mozilla-firefox still build with -j1 only. A look at the particular ebuild reveals you'll need this setting in /etc/make.conf:

WANT_MP="true"
Note: We usually set -j1 for a reason - if the package is prone to break otherwise. So you really shouldn't do this.


Speed up gcc invocation

Running just gcc is way slower than running gcc-4.2.0. If you can do it without gcc-config, put this in /etc/make.conf:

# Fill in your gcc version:
CC="gcc-4.2.0"
CXX="g++-4.2.0"
Note: This was a bug and is now fixed. No need to use this dirty hack.
Retrieved from "http://www.gentoo-wiki.info/TIP_GCC_performance"

Last modified: Sun, 08 Jun 2008 06:21:00 +0000 Hits: 6,554