[distcc] How to use distcc in a project using more than one cross-compiler?

Martin Pool mbp at sourcefrog.net
Tue Aug 4 23:39:17 MDT 2009


2009/8/5 JCX <jcx721 at gmail.com>:
> I am sorry.
>
> The project uses three cross-compilers. The compiler paths are set
> absolutely in ".config" files, like "CC=ABSOLUTE COMPILER PATH".
> ".config" files are used by Makefile. We use make to compile the whole
> project.
>
> I think I may insert "distcc" before every compiler path in the
> ".config" file. However, this changes the original source files.
> What's more, I need to find all the ".config" files in the project.
>
> Is there any other elegant method?

A few options:

1- Move the compiler away and put a hardlink to distcc at the hardcoded location

2- Change the Makefiles to use an environment variable if it's set
rather than the value from .config

3- Change the Make setup so that the compiler is set once per distinct
scope not redundantly.

-- 
Martin <http://launchpad.net/~mbp/>


More information about the distcc mailing list