Building a cross compiler (Was: -Dinhibit_libc)
Rask Ingemann Lambertsen
rask@sygehus.dk
Tue Jul 17 18:33:00 GMT 2007
On Tue, Jul 17, 2007 at 12:12:14PM -0400, Kevin Yohe wrote:
> I'm still a bit confused. When I download gcc, I get a tarball that
> extracts everything to ./gcc-4.x.x/, and likewise with newlib and binutils.
> Under that directory there is another directory called gcc that contains all
> the source files. I have read somewhere that my directories should look
> something like this.
>
> src/
> +-- gcc
> +-- newlib
> +-- binutils
> build/
> +-- gcc
> +-- newlib
> +-- binutils
>
> Then you can do this
> cd build
> ../src/configure
> make
>
> That's all well and good but exactly how do I set this up with what I am
> given?
This has been answered before, so it's in the archives:
<URL:http://gcc.gnu.org/ml/gcc-help/2007-06/msg00210.html>
<URL:http://gcc.gnu.org/ml/gcc-help/2007-06/msg00230.html>
> This looks like it might work but begs the question, which configure (or
> other conflicting files) from which tarball do I use? gcc?
Generall, gcc holds the master copy, but if e.g. you try to build an old
release of gcc and a new release of binutils, you may have to use the newer
one.
--
Rask Ingemann Lambertsen
More information about the Gcc-help
mailing list