[pacman-dev] recommended usage of distcc/ccache
Andreas Radke
a.radke at arcor.de
Tue Apr 24 16:37:55 EDT 2007
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.
Thanks
Andy
More information about the pacman-dev
mailing list