One way you could maybe do it is to use the trick that CLFS uses. You build a very limited set of tools in the target architecture -- much more limited than the usual LFS tools, basically just binutils, gcc, glibc and one or two others that gcc itself needs. Then you use those tools to build your real target.
|