Files
MINGW-packages/mingw-w64-python3/0990-MINGW-link-with-additional-library.patch

20 lines
480 B
Diff

diff -Naur Python-3.7.0-orig/configure.ac Python-3.7.0/configure.ac
--- Python-3.7.0-orig/configure.ac 2018-07-12 10:22:20.589657600 +0300
+++ Python-3.7.0/configure.ac 2018-07-12 10:22:40.729293000 +0300
@@ -5686,6 +5686,15 @@
done
AC_MSG_RESULT(done)
+# For mingw build need additional library for linking
+case $host in
+ *-*-mingw*)
+ LIBS="$LIBS -lversion -lshlwapi"
+ ;;
+ *)
+ ;;
+esac
+
# Availability of -O2:
AC_MSG_CHECKING(for -O2)
saved_cflags="$CFLAGS"