| … | |
… | |
| 2 | <!DOCTYPE sections SYSTEM "/dtd/book.dtd"> |
2 | <!DOCTYPE sections SYSTEM "/dtd/book.dtd"> |
| 3 | |
3 | |
| 4 | <!-- The content of this document is licensed under the CC-BY-SA license --> |
4 | <!-- The content of this document is licensed under the CC-BY-SA license --> |
| 5 | <!-- See http://creativecommons.org/licenses/by-sa/1.0 --> |
5 | <!-- See http://creativecommons.org/licenses/by-sa/1.0 --> |
| 6 | |
6 | |
| 7 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-working-features.xml,v 1.12 2004/07/31 12:04:06 swift Exp $ --> |
7 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-working-features.xml,v 1.13 2004/08/22 22:49:38 neysx Exp $ --> |
| 8 | |
8 | |
| 9 | <sections> |
9 | <sections> |
| 10 | <section> |
10 | <section> |
| 11 | <title>DistCC</title> |
11 | <title>DistCC</title> |
| 12 | <subsection> |
12 | <subsection> |
| … | |
… | |
| 81 | </p> |
81 | </p> |
| 82 | |
82 | |
| 83 | <pre caption="Possible MAKEOPTS setting in /etc/make.conf"> |
83 | <pre caption="Possible MAKEOPTS setting in /etc/make.conf"> |
| 84 | <comment># Suppose you have 2 single-CPU distccd hosts excluding this host:</comment> |
84 | <comment># Suppose you have 2 single-CPU distccd hosts excluding this host:</comment> |
| 85 | MAKEOPTS="-j4" |
85 | MAKEOPTS="-j4" |
| 86 | </pre> |
|
|
| 87 | |
|
|
| 88 | <p> |
|
|
| 89 | Now, still inside <path>/etc/make.conf</path>, uncomment the |
|
|
| 90 | <c>PORTAGE_TMPDIR</c> line and add the following line at the end |
|
|
| 91 | of the file: |
|
|
| 92 | </p> |
|
|
| 93 | |
|
|
| 94 | <pre caption="Add an extra, distcc-specific variable to /etc/make.conf"> |
|
|
| 95 | <comment># Don't forget to uncomment the PORTAGE_TMPDIR variable</comment> |
|
|
| 96 | DISTCC_DIR=${PORTAGE_TMPDIR}/portage/.distcc |
|
|
| 97 | </pre> |
86 | </pre> |
| 98 | |
87 | |
| 99 | <p> |
88 | <p> |
| 100 | Now run <c>distcc-config</c> and enter the list of available DistCC servers. For |
89 | Now run <c>distcc-config</c> and enter the list of available DistCC servers. For |
| 101 | a simple example we assume that the available DistCC servers are |
90 | a simple example we assume that the available DistCC servers are |