Files
MINGW-packages/mingw-w64-python3/0990-MINGW-link-with-additional-library.patch
2018-04-16 10:51:53 +03:00

20 lines
470 B
Diff

diff -Naur Python-3.6.5-orig/configure.ac Python-3.6.5/configure.ac
--- Python-3.6.5-orig/configure.ac 2018-04-16 09:55:03.356815800 +0300
+++ Python-3.6.5/configure.ac 2018-04-16 09:55:03.560616200 +0300
@@ -5703,6 +5703,15 @@
done
AC_MSG_RESULT(done)
+# For mingw build need additional library for linking
+case $host in
+ *-*-mingw*)
+ LIBS="$LIBS -lversion"
+ ;;
+ *)
+ ;;
+esac
+
# Availability of -O2:
AC_MSG_CHECKING(for -O2)
saved_cflags="$CFLAGS"