The idea here is to speed up compile times by using a cross-compiler while using the native build scripts. This will only work if the version of the native and cross compilers are the same.
This document assumes you are using a debian based host; but this technique should be usable with other distros.
That should pretty much do it for the Cross Host.
3/ divert gcc to distcc: tweak distcc_hosts, compile the file and install the binary into /usr/local/bin/gcc.
3b/ Repeat, changing gcc to g++ to support c++ dist/cross too.
watch it go much faster than on the slug!
note: I carefully diffed only 2 packages; but for those two packages, the binaries generated were identical.
view · edit · print · history · Last edited by dyoung.
Based on work by buytenh and dyoung.