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"