[distcc] Re: implicit compiler name
Alexandre Oliva
oliva at lsd.ic.unicamp.br
Mon Sep 16 14:11:01 GMT 2002
On Sep 16, 2002, Dimitri PAPADOPOULOS-ORFANOS <papadopo at shfj.cea.fr> wrote:
> Then there would still be the option of letting distcc run the
> compiler the name of which is given by the symlink. This way
> you don't have to modify Makefiles and you can easily switch
> between a GNU compiler and a native compiler:
> CC -> distcc CC
> g++ -> distcc g++
But then, again, it's not that simple.
Consider PATH=/usr/local/ccache/bin:/usr/local/distcc/bin:/usr/bin:...
such that:
/usr/local/ccache/bin/gcc -> ccache
/usr/local/distcc/bin/gcc -> distcc
/usr/local/bin/gcc is the real thing
distcc has to be smart enough not only to know that the real gcc is
looking for has to be different from a link to itself, but also that
it must be *after* itself in the PATH, otherwise running gcc will
enter infinite recursion between ccache and distcc.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist Professional serial bug killer
More information about the distcc
mailing list