On 14 Oct 2004, ncrfgs <[EMAIL PROTECTED]> 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
signature.asc
Description: Digital signature
__ distcc mailing list http://distcc.samba.org/ To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/distcc