From 876d62429ea422c26ab4211e0726ca17201ec658 Mon Sep 17 00:00:00 2001 From: "Erik M. Bray" Date: Thu, 26 Oct 2017 17:24:46 +0200 Subject: [PATCH] Allow the UnixCCompiler.find_library_file to correctly find DLL import libs (.dll.a) on Cygwin --- Lib/distutils/unixccompiler.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/distutils/unixccompiler.py b/Lib/distutils/unixccompiler.py index ab4d4de15661985..a9797fbbaba4d97 100644 --- a/Lib/distutils/unixccompiler.py +++ b/Lib/distutils/unixccompiler.py @@ -81,6 +81,7 @@ class UnixCCompiler(CCompiler): xcode_stub_lib_format = dylib_lib_format if sys.platform == "cygwin": exe_extension = ".exe" + dylib_lib_extension = ".dll.a" def preprocess(self, source, output_file=None, macros=None, include_dirs=None, extra_preargs=None, extra_postargs=None):