First, you will need to emerge
Next, you will need to emerge
In the default distcc setup, cross-compiling will
Fortunately, there is a workaround for this little problem. All it takes is a
couple of wrapper scripts and a few symlinks on the box that will be running
ryoko bin # ls -l total 0 lrwxrwxrwx 1 root root 15 Dec 23 20:13 c++ -> /usr/bin/distcc lrwxrwxrwx 1 root root 15 Dec 23 20:13 cc -> /usr/bin/distcc lrwxrwxrwx 1 root root 15 Dec 23 20:13 g++ -> /usr/bin/distcc lrwxrwxrwx 1 root root 15 Dec 23 20:13 gcc -> /usr/bin/distcc lrwxrwxrwx 1 root root 15 Dec 23 20:13 sparc-unknown-linux-gnu-c++ -> /usr/bin/distcc lrwxrwxrwx 1 root root 15 Dec 23 20:13 sparc-unknown-linux-gnu-g++ -> /usr/bin/distcc lrwxrwxrwx 1 root root 15 Dec 23 20:13 sparc-unknown-linux-gnu-gcc -> /usr/bin/distcc
Here is what you want to do:
# rm c++ g++ gcc cc
Next, we'll create the new scripts. Fire up your favorite editor and create a
file with the following text in it, then save it as
#!/bin/bash exec /usr/lib/distcc/bin/sparc-unknown-linux-gnu-gcc "$@"
Again, create another file and add the following to it, then save it as
#!/bin/bash exec /usr/lib/distcc/bin/sparc-unknown-linux-gnu-g++ "$@"
Next, we'll create the proper symlinks:
# ln -s gcc cc # ln -s g++ c++ # chmod a+x gcc g++
When you're done,
ryoko bin # ls -l total 8 lrwxrwxrwx 1 root root 3 Dec 23 20:16 c++ -> g++ lrwxrwxrwx 1 root root 3 Dec 23 20:16 cc -> gcc -rwxr-xr-x 1 root root 71 Dec 23 20:16 g++ -rwxr-xr-x 1 root root 71 Dec 23 20:16 gcc lrwxrwxrwx 1 root root 15 Dec 23 20:13 sparc-unknown-linux-gnu-c++ -> /usr/bin/distcc lrwxrwxrwx 1 root root 15 Dec 23 20:13 sparc-unknown-linux-gnu-g++ -> /usr/bin/distcc lrwxrwxrwx 1 root root 15 Dec 23 20:13 sparc-unknown-linux-gnu-gcc -> /usr/bin/distcc
Congratulations; you now have a (hopefully) working cross-distcc setup.
When