Skip to content

Commit

Permalink
Use -shared instead of -mdll
Browse files Browse the repository at this point in the history
  • Loading branch information
MehdiChinoune authored and lazka committed Oct 2, 2023
1 parent a604b5a commit 570a91b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lib/distutils/cygwinccompiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def __init__(self, verbose=0, dry_run=0, force=0):
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' %
Expand Down Expand Up @@ -287,7 +287,7 @@ def __init__(self, verbose=0, dry_run=0, force=0):
'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'
Expand Down

0 comments on commit 570a91b

Please sign in to comment.