This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Cross-compiler for gcc 2.95.2 revisited.
- To: help-gcc at gnu dot org
- Subject: Re: Cross-compiler for gcc 2.95.2 revisited.
- From: khan at xraylith dot wisc dot edu (Mumit Khan)
- Date: 18 Nov 1999 20:36:49 GMT
- Newsgroups: gnu.gcc.help
- Organization: Center for X-ray Lithography, UW-Madison
- References: <38322A61.44B5B73C@whoever.com> <3833f1e3.17898737@news.nettilinja.fi>
- Xref: wodc7nx0 gnu.gcc.help:1875
In article <3833f1e3.17898737@news.nettilinja.fi>,
Kai Ruottu <karuottu@freenet.hut.fi> wrote:
> All kind of 'patching scripts' are just like supplying food for the
>hungry, not teaching them how to grow their own food. What is the idea
>behind these 'Cross-GCC-patches', I have never understood... "Learn
>the basic things, go and learn them... Do it now, not tomorrow" just
>as some song for children says...
Kai's very correct that you simply need to understand how GCC looks up
target includes and libraries during the build process, and you can then
kiss all these sometimes bizarre, and sometimes quite incorrect, patching
scripts goodbye.
I have instructions on how to build Unix hosted x86-win32 targets
cross-compilers (there's even instructions to build x86-win32 hosted
Linux compiler, done just for the fun of it) available at
http://www.xraylith.wisc.edu/~khan/software/gnu-win32/
The instructions may seem tedious the first time, but it's just a matter
of writing a small shell script that copies the target includes and
libraries to the appropriate places (depends on what prefix you supply
when configuring gcc-2.95.x).
Regards,
Mumit