This is the mail archive of the
mailing list for the Cygwin project.
Re: Compiling apps to Mingw32 with cygwin
- From: "Robert Collins" <robert dot collins at itdomain dot com dot au>
- To: "Jon Leichter" <jonleichter at mediaone dot net>,<earnie_boyd at yahoo dot com>
- Cc: <hschwentner at yahoo dot com>,<cygwin at cygwin dot com>
- Date: Sun, 13 Jan 2002 10:23:48 +1100
- Subject: Re: Compiling apps to Mingw32 with cygwin
- References: <CIENIMJIOHKBPJEFFFOBIEIJCBAA.email@example.com>
----- Original Message -----
From: "Jon Leichter" <firstname.lastname@example.org>
> Earnie and Robert,
> I'm a bit confused when I consider the commentary that you both have
> contributed on this topic. Here's what I have assessed. You two guys
> me where I'm wrong.
> Robert has implied that using GCC with -mno-cygwin is virtually a
> cross-compile and should be treated as such. An up-to-date and well
> configure script would require that the user have i686-pc-mingw32-gcc
> as a script or a binary invokes gcc -mno-cygwin). He would not
> need to symlink other binutils to i686-pc-mingw32-<tool> because the
> configure script would find the build (Cygwin) tools after checking
> host tools. He would invoke configure with the following:
Reread the thread. I indicated you should have those symlinks. It *may
work* without them, that is different from what *I would do*.
> Earnie. Your comments seem to contradict each other. In your last
> seems you are implying that "gcc -mno-cygwin" is NOT a cross-compile.
> then you went on to explain how I could safely use the switches if I
> symlinks to emulate a cross-compile. Which point of view do you
gcc -mno-cygwin isn't a cross compile. It links with a different libc,
and puts different headers in the search path - that's all. It *also*
happens to meet the criteria for a cross compile in that
1) cygwin gcc accepts / and \ paths
2) the mingw libraries are present and the file format is understood.
3) The resulting binaries are compatible with the platform.
This is more of an accident than plan :}
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html