Skip to content

Commit 9dba083

Browse files
Alexpuxlazka
authored andcommitted
distutils: mingw add LIBPL to library dirs
1 parent 812e7ee commit 9dba083

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/distutils/command/build_ext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def finalize_options(self):
218218

219219
# For extensions under Cygwin, Python's library directory must be
220220
# appended to library_dirs
221-
if sys.platform[:6] == 'cygwin':
221+
if sys.platform[:6] == 'cygwin' or self.plat_name.startswith(('mingw')):
222222
if sys.executable.startswith(os.path.join(sys.exec_prefix, "bin")):
223223
# building third party extensions
224224
config_dir_name = os.path.basename(sysconfig.get_config_var('LIBPL'))

0 commit comments

Comments
 (0)