Mail Archives: cygwin/1999/02/14/21:47:22
On Sun, 14 Feb 1999, Laszlo Vecsey wrote:
> I have a glibc 2.1 based egcs-1.1.1 system, that I'm trying to set up a
> mingw32 cross compiler for, and I've been running into various problems. I
> know about the well written posts about this already in the mail archives,
> but those were with previous versions; can anyone confirm they have a
> working setup with the latest releases?
The instructions have not changed, since the basic framework is exactly
the same. What problems are you having??
Here's my quick 1st cut:
1. Pick a prefix, say /usr/local/cross-tools (I'll call this $prefix
from now on).
2. Populate $prefix/i386-mingw32/{lib,include} with mingw + windows32api
headers and import libraries.
3. Get and install binutils. If you don't have access to Cygwin b20.1
sources (binutils 2.9.4), use the standard binutils-2.9.1, which mostly
works. It is missing a few pieces however, such as enhancements to
dlltool, dllwrap, etc.
$ cd binutils && mkdir obj && cd obj
$ ../configure --target=i386-mingw32 --prefix=/usr/local/cross-tools
$ make
$ make install
4. Get egcs-1.1.1, patch it with my changes from
ftp://ftp.xraylith.wisc.edu/pub/khan/gnu-win32/mingw32/egcs-1.1.1/patches/
and build/install:
$ cd egcs-1.1.1 && mkdir obj && cd obj
$ ../configure --target=i386-mingw32 --prefix=/usr/local/cross-tools
$ (cd gcc; make installdirs)
[ the above step is needed due to relative path lookup for includes/libs ]
$ make
$ make install
Done.
If you already have Cygwin b20.1 sources, and can live with egcs-1.1,
you're all set:
$ cd cygwin-b20.1 && mkdir obj && cd obj
$ ../configure --prefix=/usr/local/cross-tools --target=i386-mingw32
$ make
$ make install
Regards,
Mumit
- Raw text -