This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: lots of cross compilers without recompiling everything so many times?
- From: Ian Lance Taylor <iant at google dot com>
- To: Jay K <jay dot krell at cornell dot edu>
- Cc: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Mon, 24 May 2010 14:00:42 -0700
- Subject: Re: lots of cross compilers without recompiling everything so many times?
- References: <COL101-W3600DC524E5CE23BF2A5C8E6E60@phx.gbl>
Jay K <jay.krell@cornell.edu> writes:
> My question is though, has anyone considered altering things so that
> this can be easily constructed without recompiling the same code so
> many times?
Yes, it's been considered. It's just hard, and few people would
benefit.
> gmp/mpfr/mpc seems particularly expensive to recompile so many times.
> I've taken to not doing that, at least when host and build aren't
> varying and only target is.
If you want to build for several targets, then don't put those
libraries in the gcc source code. Instead, configure them (with
--disable-shared), make them, and install them separately, and pass
appropriate --with options when you configure gcc.
Ian