Files
MINGW-packages/mingw-w64-python3/0920-mingw-add-LIBPL-to-library-dirs.patch

13 lines
830 B
Diff

diff -Naur Python-3.4.2-orig/Lib/distutils/command/build_ext.py Python-3.4.2/Lib/distutils/command/build_ext.py
--- Python-3.4.2-orig/Lib/distutils/command/build_ext.py 2014-12-11 13:50:52.587800000 +0300
+++ Python-3.4.2/Lib/distutils/command/build_ext.py 2014-12-11 13:58:32.038800000 +0300
@@ -221,7 +221,7 @@
# for extensions under Cygwin and AtheOS Python's library directory must be
# appended to library_dirs
- if sys.platform[:6] == 'cygwin' or sys.platform[:6] == 'atheos':
+ if sys.platform[:6] == 'cygwin' or sys.platform[:6] == 'atheos' or self.plat_name.startswith(('mingw')):
if sys.executable.startswith(os.path.join(sys.exec_prefix, "bin")):
# building third party extensions
self.library_dirs.append(os.path.join(sys.prefix, "lib",