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: "J. Henning Schwentner" <hschwentner at yahoo dot com>,<cygwin at cygwin dot com>
- Date: Mon, 7 Jan 2002 08:45:08 +1100
- Subject: Re: Compiling apps to Mingw32 with cygwin
- References: <CIENIMJIOHKBPJEFFFOBOEOACAAA.email@example.com> <ITDOMAIN003sl3xbYiM0000006c@itdomain003.itdomain.net.au>
----- Original Message -----
From: "J. Henning Schwentner" <firstname.lastname@example.org>
Sent: Monday, January 07, 2002 12:57 AM
Subject: Re: Compiling apps to Mingw32 with cygwin
> Thanks for your quick help, this works nice!
> But, it is a bit difficult. I think ideally configure should detect
> --host=mingw32 --build=cygwin and in this case should add --mno-cygwin
> CFLAGS and CPPFLAGS (and do something to fix libtool).
Why? That would prevent compiling with a cygwin target.
--host and --build and --target are _user_ switches. configure should
never alter those.
As for detecting -mno-cygwin, you can use a variation of the
AC_API_WIN32 Macros' I posted to the autoconf list some time back - but
only do that when you've checked the host platform is actually mingw32.
> I am not sure if this is a bit off topic, maybe this sould be posted
> autoconf list.
It's in the grey area, still related to cygwin, but heading to autoconf
only pretty quickly.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html