http://www.lancard.com/archives/000024.html
めも
http://lists.samba.org/archive/distcc/2002q4/000365.html
The most practical solution is probably to create a tiny shell script
called "cc" in the appropriate directory at the start of your PATH,
with something likeexec ccache distcc cc "$@"
http://lists.samba.org/archive/distcc/2002q4/000375.html
vi ~/.rpmmacros Add to it %_smp_mflags -j5 %configure \ CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; \ CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; \ FFLAGS="${FFLAGS:-%optflags}" ; export FFLAGS ; \ CCACHE_DISTCC=1; export CCACHE_DISTCC ; \ DISTCC_HOST="host1 host2 host3 host4" ; export DISTCC_HOST ; \ CC="ccache" ; export CC ; \ CXX="ccache" ; export CXX ; \ MAKEOPTS="%{_smp_mflags}" ; export MAKEOPTS ; \ ./configure \\\ %{?_gnu: --target=%{_target_platform}} \\\ %{!?_gnu: --target=%{_target_platform}} \\\ --prefix=%{_prefix} \\\ --exec-prefix=%{_exec_prefix} \\\ --bindir=%{_bindir} \\\ --sbindir=%{_sbindir} \\\ --sysconfdir=%{_sysconfdir} \\\ --datadir=%{_datadir} \\\ --includedir=%{_includedir} \\\ --libdir=%{_libdir} \\\ --libexecdir=%{_libexecdir} \\\ --localstatedir=%{_localstatedir} \\\ --sharedstatedir=%{_sharedstatedir} \\\ --mandir=%{_mandir} \\\ --infodir=%{_infodir} Since many of the more modern .spec files using %configure, this will setup everything for ccache and distcc. Make sure you change DISTCC_HOST to your hostname. Change _smp_mflags to whatever -j you want passed to make.