From f8ce319d46c25b8afe6083284315169d8f418880 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D9=85=D9=87=D8=AF=D9=8A=20=D8=B4=D9=8A=D9=86=D9=88=D9=86?= =?UTF-8?q?=20=28Mehdi=20Chinoune=29?= Date: Wed, 27 Sep 2023 21:45:13 +0100 Subject: [PATCH 146/N] Use `-shared` instead of `-mdll` --- Lib/distutils/cygwinccompiler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/distutils/cygwinccompiler.py b/Lib/distutils/cygwinccompiler.py index d8c8428..860b48c 100644 --- a/Lib/distutils/cygwinccompiler.py +++ b/Lib/distutils/cygwinccompiler.py @@ -125,7 +125,7 @@ class CygwinCCompiler(UnixCCompiler): shared_option = "-shared" self.set_executables(compiler='%s -mcygwin -O -Wall' % self.cc, - compiler_so='%s -mcygwin -mdll -O -Wall' % self.cc, + compiler_so='%s -mcygwin -shared -O -Wall' % self.cc, compiler_cxx='%s -mcygwin -O -Wall' % self.cxx, linker_exe='%s -mcygwin' % self.cc, linker_so=('%s -mcygwin %s' % @@ -287,7 +287,7 @@ class Mingw32CCompiler(CygwinCCompiler): 'Cygwin gcc cannot be used with --compiler=mingw32') self.set_executables(compiler='%s -O2 -Wall' % self.cc, - compiler_so='%s -mdll -O2 -Wall' % self.cc, + compiler_so='%s -shared -O2 -Wall' % self.cc, compiler_cxx='%s -O2 -Wall' % self.cxx, linker_exe='%s' % self.cc, linker_so='%s %s'