delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/02/14/21:47:22

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 <khan AT xraylith DOT wisc DOT edu>
To: Laszlo Vecsey <master AT internexus DOT net>
cc: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: linux cross compiling again
In-Reply-To: <Pine.LNX.4.05.9902140807310.31656-100000@micro.internexus.net>
Message-ID: <Pine.SUN.3.93.990214153939.21178B-100000@modi.xraylith.wisc.edu>
MIME-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019