Building GCC: Difference between revisions

Jump to navigation Jump to search
Added a suggestion to speed up compiling (make -jN)
[unchecked revision][unchecked revision]
No edit summary
(Added a suggestion to speed up compiling (make -jN))
Line 45:
 
Please note that we build everything out of the source directory tree, as is considered good practice. Some packages only support building outside, some only inside and some both (but may not offer extensive checking with make). Building GCC inside the source directory tree fails miserably, at least for older versions.
 
As the build can take a long time, it is recommended to make use of make's "-jN" option. This will allow make to use multiple threads to compile the programs, which will speed up things a LOT. Substitute N with a number; a good guideline is the number of core you CPU has, plus one. So for a 4 core CPU, you'll want to use :
<source lang="bash">
make -j5
</source>
 
=== Preparation ===
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu