Delivered-To: listarch-cygwin AT sourceware DOT cygnus DOT com Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com X-Authentication-Warning: modi.xraylith.wisc.edu: khan owned process doing -bs Date: Sun, 14 Feb 1999 15:47:12 -0600 (CST) From: Mumit Khan To: Laszlo Vecsey cc: cygwin AT sourceware DOT cygnus DOT com Subject: Re: linux cross compiling again In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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