This is the mail archive of the
mailing list for the cygwin project.
Re: cygwin and mingw
- From: Carlo Florendo <list-subscriber at hq dot astra dot ph>
- To: Talk Amongst Yourselves <cygwin-talk at cygwin dot com>
- Date: Fri, 28 Jan 2005 11:05:03 +0800
- Subject: Re: cygwin and mingw
- References: <41F83867.email@example.com> <20050127060516.GA1148@efn.org>
- Reply-to: Talk Amongst Yourselves <cygwin-talk at cygwin dot com>
Yitzchak Scott-Thoennes wrote:
On Thu, Jan 27, 2005 at 08:40:07AM +0800, Carlo Florendo wrote:Oh, so it wouldn't be that simple....
I'd like to be able to build the cdrtools under mingw. Is it possible
for me to just change all references to "gcc" to "gcc -mno-cygwin" and
run make (assuming, of course that both the native cygwin and native
mingw libraries exist)?
FWIW, I recently tried this with perl (building a native-win32 perl
using -mno-cygwin instead of the supported MinGW, Borland C or VC).
The two issues I ran into were:
The makefile provided only worked with dmake, and I only had a
non-cygwin version of dmake. dmake calling cygwin's gcc resulted in
different command line quoting/escaping behaviour than when calling
MinGW's gcc. See thread on the cygwin list: "cygwin programs called
from non-cygwin programs mauling \" in args".
Whew! So that means downloading a native mingw may still be useful.
Preprocessor output used posix pathnames; this broke perl code
finding the errno constants to build the Errno module. I put in a
cygpath hack, but it would be nice if there were a way to get gcc
-mno-cygwin to use windows pathnames.
Thanks a lot!
Astra Philippines Inc.