[distcc] Re: distld?

Martin Pool mbp at sourcefrog.net
Tue Mar 28 10:33:43 GMT 2006

On 23 Mar 2006, Dobes Vandermeer <dobesv at gmail.com> wrote:
> On 3/23/06, Victor Norman <vtnpgh at yahoo.com> wrote:
> > Martin, et al.,
> >
> > In one of our builds, there are a bunch of templated classes, templated
> > functions, etc., etc.  The result is that the 'ld' part of building takes a
> > long time now, as ld instantiates the templates appropriately.  As a result,
> > we'd like to be able to do distributed ld-ing, so that the fastest available
> > machine does the loading.  I think this would be possible -- we could gather
> > up all the .o files on the build machine and send them over the wire to the
> > compilation machine, which could do the loading and linking, and send the
> > result back.
> >
> > Do you see any problems with this?  Would it be easy, you think, to make
> > this happen?  I think it would be mostly work in arg.c so make distcc
> > recognize gnu ld arguments, etc.

You would also need to find and send the right libraries.  You may need
to consider if/when the linker builds the library paths into the
library.  If you can rely on all machines having the same libraries
installed, or the same filesystem, then this may be less hard.


More information about the distcc mailing list