[distcc] Re: The masquerade continues with 1.2.2

Wayne Davison wayned at users.sourceforge.net
Thu Feb 27 07:05:34 GMT 2003


On Wed, Feb 26, 2003 at 08:17:34PM -0800, Tom Matelich wrote:
> Sorry, I'm new to distcc.  What is the masquerade patch?

Here's a little more detail on how you can use a masquerading distcc.
If you create a set of symlinks, like this:

    /usr/lib/distcc/bin/gcc -> /usr/bin/distcc
    /usr/lib/distcc/bin/cc -> /usr/bin/distcc
    /usr/lib/distcc/bin/g++ -> /usr/bin/distcc
    /usr/lib/distcc/bin/c++ -> /usr/bin/distcc
    ...etc...

To use the above setup, all you need to do is to add the bin dir above
early in your PATH.  Then the masquerade-enabled distcc will just work
with any package out there, even ones that don't honor the CC variable
or don't like it to contain multiple words (for instance, KDE compiles
out of the box with masquerading, but it fails to compile if you try to
put "distcc g++" into CXX).

If you combine distcc with ccache, this also prevents problems with
remote systems that don't have the compiler in the same place as the
local system.  I.e. if you follow ccache's instructions for how to use
both programs together (using CCACHE_PREFIX) then all the remote systems
must have (for instance) gcc installed in exactly the same place as the
local system or the absolute path that ccache passes to distcc will not
reference a working compiler.  Using the masquerade patch avoids all that.  

..wayne..


More information about the distcc mailing list