|
|
Line 21: |
Line 21: |
|
| |
|
| =Distributed building= | | =Distributed building= |
|
| |
| ==Requirements==
| |
|
| |
| The following seems to be out of date for my Ubuntu setup. My suggestion would be to look
| |
| at the latest info for distcc and follow the instructions from there. Make sure the different
| |
| machines have the same software. DAS
| |
|
| |
|
| |
| distcc
| |
| ccache
| |
|
| |
| Install distcc on all machines taking part in the compilation. List them in <nowiki>~/.distcc/hosts</nowiki>:
| |
|
| |
| localhost
| |
| pc1.mynet.org
| |
| pc2.mynet.org
| |
|
| |
| The first machines listed are given higher priority -- place 'localhost' as you see fit.
| |
|
| |
| Set the environment variables CCACHE_PREFIX, CXX and CC:
| |
|
| |
| export CCACHE_PREFIX="distcc"
| |
| export CXX="ccache g++"
| |
| export CC="ccache gcc"
| |
| ./configure <options>
| |
|
| |
| Compile using the <nowiki>-j<simultaneous-jobs></nowiki> flag, two jobs per CPU available, i.e. for 5 machines
| |
|
| |
| make -j10
| |