Trying to combine ccache and colorgcc. Following link text:
As others have already said, it is a matter of setting up paths and symbolic links.
Follow the invaluable Arch guide on this.
I do this so many times and is such a tricky setup that I ended up setting up a docker wrapper with the right configuration.
You can check it out here
In short, use this alias
alias mmake='docker run --rm -v "$(pwd):/src" -t ownyourbits/mmake'
and do mmake instead of make