Monday, September 8, 2008

DISTCC masquerade recursion issue

make sure that g++/gcc has absolute linkage to g++-/gcc-(version) otherwise there is will be a recursion issue

mkdir /usr/lib/distcc/bin
cd /usr/lib/distcc/bin
ln -s ../../../bin/distcc gcc
ln -s ../../../bin/distcc cc
ln -s ../../../bin/distcc g++

mkdir /etc/distcc
echo 'localhost' >> /etc/distcc/hosts

echo "export PATH=/usr/lib/distcc/bin:$PATH"
ln -sf /usr/bin/g++-4.1 /usr/bin/g++
ln -sf /usr/bin/gcc-4.1 /usr/bin/gcc

set path variable to have distcc as the first

No comments: