[distcc] Link-based masquerading and dist-cross-compiling

Martin Pool mbp at sourcefrog.net
Fri Oct 15 00:44:12 GMT 2004


On 14 Oct 2004, ncrfgs <ncrfgs at tin.it> wrote:
> On Tue, Oct 12, 2004 at 11:45:30AM +1000, Martin Pool wrote:
> > OK, so you have a package that (let's say) is hardcoded to compile
> > using cc.  You want to partially cross-compile it.
> > 
> > One approach is to put a script called 'cc' on your path which invokes
> > ccache or distcc with the real universal compiler name.
> 
> Something like this?
> 
>   :~$ cat /usr/lib/ia64-linux/cc
> 
>   #!/bin/sh
> 
>   ccache distcc ia64-linux-gcc "$@"

It's slightly better to say 

  CCACHE_PREFIX=distcc exec ccache ia64-linux-gcc "$@"

>   :~$ ls -la /usr/bin/ia64-linux-gcc
> 
>   [...] /usr/bin/ia64-linux-gcc -> /usr/i64-linux/bin/ia64-linux/gcc*

You can use this for packages that do allow you to override $CC.

-- 
Martin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.samba.org/archive/distcc/attachments/20041015/8ef9e516/attachment.bin


More information about the distcc mailing list