Consider using this [blog post](http://www.sniff.org.uk/2014/05/building-gcc-for-yun-in-12-not-easy.html) from dctsystems to prepare an installable toolchain, therefore providing the yun with gcc