config-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Support for MinGW compilers in the Cygwin environment


From: JonY
Subject: Re: Support for MinGW compilers in the Cygwin environment
Date: Mon, 21 Oct 2013 18:13:29 +0800
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080213 Thunderbird/2.0.0.12 Mnenhy/0.7.5.0

On 10/21/2013 09:50, Daniel Richard G. wrote:
> Hello,
> 
> Among the many packages Cygwin provides are MinGW builds of GCC and the
> associated libraries and tools, making this a convenient alternative to
> MSYS and the packages provided directly by the MinGW project.
> 
> When one is using the MinGW compiler in this environment, however,
> config.guess still identifies the system as *-*-cygwin, instead of the
> more appropriate *-*-mingw* which will typically enable Windows-specific
> build settings (such as linking against -lws2_32 for networking
> functions).
> 
> The attached patch (against git master) consolidates the three separate
> Cygwin cases in the big case statement, and adds a compiler check. The
> output is changed only if the MinGW compiler is in use; otherwise,
> *-*-cygwin is returned as before.

This patch is nonsense and needs to be shot down. Do not confuse Cygwin
and MSYS, they are not interchangeable. Use --host to set the cross
compiler triplet instead.

You also run the risk of breaking non-gcc compilers.

Moreover,  *-*-mingw64 does not exist save for a short experimentation
period. It should really be removed. The __MINGW64__ macro on the other
hand is unrelated to any of this.


Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]