On 4/24/07, Andreas Radke <a.radke@arcor.de> wrote:
our wiki page is old. this is how i usesd distcc with makepkg from pacman2.x so i could switch using it with or without ccache:
export MAKEFLAGS="-j6" export USE_FAKEROOT="y" export DISTCC="y" export DISTCC_HOSTS="localhost/4 192.168.0.25/2"
# with ccache export CCACHE_PREFIX="distcc" export CC="ccache gcc" export CXX="ccache g++"
# without ccache #unset CCACHE_PREFIX #export CC="distcc gcc" #export CXX="distcc g++"
from the /usr/bin/makepkg script it should work even without that additional exports. but it seems to not work without using only that now with makepkg3:
MAKEFLAGS="-j4" BUILDENV=(fakeroot distcc color ccache) DISTCC_HOSTS="localhost/2 192.168.0.6/2"
also JGC pointed us to not use the export commands for ccache: http://bugs.archlinux.org/task/6957?histring=ccache
Can you please tell us what it the recommended best working config for both options? and maybe please update both wiki pages for ccache and distcc.
makepkg 3 has built in support for ccache. It can be disabled by packages that do not cooperate with it by placing !ccache in the options array (or the deprecated noccache). -Dan