| … | |
… | |
| 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/2.5 --> |
5 | <!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
| 6 | |
6 | |
| 7 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-working-features.xml,v 1.31 2005/12/01 18:46:18 swift Exp $ --> |
7 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-working-features.xml,v 1.32 2006/10/17 02:28:45 nightmorph Exp $ --> |
| 8 | |
8 | |
| 9 | <sections> |
9 | <sections> |
| 10 | |
10 | |
| 11 | <version>1.28</version> |
11 | <version>1.29</version> |
| 12 | <date>2005-12-01</date> |
12 | <date>2006-10-16</date> |
| 13 | |
13 | |
| 14 | <section> |
14 | <section> |
| 15 | <title>Portage Features</title> |
15 | <title>Portage Features</title> |
| 16 | <body> |
16 | <body> |
| 17 | |
17 | |
| … | |
… | |
| 195 | <title>Using ccache for non-Portage C Compiling</title> |
195 | <title>Using ccache for non-Portage C Compiling</title> |
| 196 | <body> |
196 | <body> |
| 197 | |
197 | |
| 198 | <p> |
198 | <p> |
| 199 | If you would like to use ccache for non-Portage compilations, add |
199 | If you would like to use ccache for non-Portage compilations, add |
| 200 | <path>/usr/lib/ccache/bin</path> to the beginning of your PATH variable |
200 | <path>/usr/lib/ccache/bin</path> to the beginning of your PATH variable (before |
| 201 | (before <path>/usr/bin</path>). This can be accomplished by editing |
201 | <path>/usr/bin</path>). This can be accomplished by editing |
| 202 | <path>/etc/env.d/00basic</path>, which is the first environment file that |
202 | <path>.bash_profile</path> in your user's home directory. Using |
| 203 | defines the <c>PATH</c> variable: |
203 | <path>.bash_profile</path> is one way to define PATH variables. |
| 204 | </p> |
204 | </p> |
| 205 | |
205 | |
| 206 | <pre caption="Editing /etc/env.d/00basic"> |
206 | <pre caption="Editing .bash_profile"> |
| 207 | PATH="<i>/usr/lib/ccache/bin</i>:/opt/bin" |
207 | PATH="<i>/usr/lib/ccache/bin</i>:/opt/bin" |
| 208 | </pre> |
208 | </pre> |
| 209 | |
209 | |
| 210 | </body> |
210 | </body> |
| 211 | </subsection> |
211 | </subsection> |