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

_______________________________________________
config-patches mailing list
config-patches@gnu.org
https://lists.gnu.org/mailman/listinfo/config-patches

Reply via email to