This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Cross-compiler for gcc 2.95.2 revisited.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]