Index: Lib/distutils/cygwinccompiler.py =================================================================== --- Lib/distutils/cygwinccompiler.py (revision 61699) +++ Lib/distutils/cygwinccompiler.py (working copy) @@ -78,12 +78,14 @@ else: raise ValueError("Unknown MS Compiler version %i " % msc_Ver) + return [] + class CygwinCCompiler (UnixCCompiler): compiler_type = 'cygwin' obj_extension = ".o" - static_lib_extension = ".a" + static_lib_extension = ".dll.a" shared_lib_extension = ".dll" static_lib_format = "lib%s%s" shared_lib_format = "%s%s" Index: Lib/distutils/ccompiler.py =================================================================== --- Lib/distutils/ccompiler.py (revision 61699) +++ Lib/distutils/ccompiler.py (working copy) @@ -1057,7 +1057,7 @@ # on a cygwin built python we can use gcc like an ordinary UNIXish # compiler - ('cygwin.*', 'unix'), + ('cygwin.*', 'cygwin'), ('os2emx', 'emx'), # OS name mappings