Устанавливаем и конфигурируем ccache
- Make sure your portage version is higher than 2.0.46-r11: emerge --version
- Emerge ccache: emerge -av dev-util/ccache
- Find your CHOST (see below): emerge --info | grep CHOST
- Copy the CHOST value (in double quotes) into this command: ccache-config --install-links YOUR-CHOST-HERE
$ emerge --version
Portage 2.1.1-r2 (default-linux/x86/2006.1, gcc-4.1.1, glib-2.4-r3, 2.6.18-gentoo-r5 i686)
$ emerge -av dev-util/ccache
...
Would you like to merge these packages? [Yes/No] y
...
$ emerge --info | grep CHOST
CHOST="i686-pc-linux-gnu"
$ ccache-config --install-links i686-pc-linux-gnu
Configuration takes place within /etc/make.conf
FEATURES="ccache"
Очистить кэш ccache -c
Посмотреть кэш ccache -s