[Distutils] distutils/cygwincompiler.py not compatible with new releases of MingW

Seppo Yli-Olli seppo.yliolli at gmail.com
Sat Oct 22 23:41:12 CEST 2011


Hi,
newer versions of MingW no longer have -mno-cygwin parameter for their 
GCC (4.6.1 here) et al which means that compiling with that out of the 
box fails. Is there some kind of bug tracker for distutils where this 
could be followed (I'd be willing to study more in-depth when this 
broke)? Assumably -mno-cygwin needs to be conditional on the compiler 
version for compiler command and linker version for linker commands so 
this fixing this will not break compatibility.
Simply removing all instances of -mno-cygwin from self.set_executables 
in Mingw32Compiler's __init__ fixed it which means it should not be 
essentially difficult to overcome as long as right conditions on when 
-mno-cygwin must be used are determined.
-
Seppo Yli-Olli


More information about the Distutils-SIG mailing list