On Mon, 2013-04-01 at 17:51 +0000, Booty Bootstrapper wrote: > I would like to to build gcc with a glibc other than the used by the build > system and compiler. The resulting compiler is installed to a host that has > the glibc I am building against and everything else (binutils) in the regular > /usr/. > > What is the easiest way to do that? Andrew Pinski suggested a Canadian Cross > (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56802), but this sounds incredibly > fragile. Is there an easier way? > > I do not care about bootstrapping at this point. There's nothing particularly fragile about Canadian Cross builds. However, you only need a Canadian Cross if you're trying to build a _cross-compiler_ that will run on a different system. If you're trying to build a compiler that will run on a different system but be a native compiler on that system, that's just standard cross-compilation of GCC (note!! Not making GCC be a cross-compiler!) I believe all you have to do is run the standard GCC build with the --host flag set to the target you want to build for, and appropriate configure flags (such as --with-sysroot) to find the alternative glibc and headers. Of course you need to deal with binutils as well.