| diff -Naur Python-3.8.0-orig/configure.ac Python-3.8.0/configure.ac |
| --- Python-3.8.0-orig/configure.ac 2019-10-22 10:01:07.206954700 +0300 |
| +++ Python-3.8.0/configure.ac 2019-10-22 10:01:18.470174500 +0300 |
| @@ -1204,6 +1204,13 @@ |
| ;; |
| |
| esac |
| + case $host in |
| + *-*-mingw*) |
| + LDLIBRARY='libpython$(LDVERSION).dll.a' |
| + DLLLIBRARY='libpython$(LDVERSION).dll' |
| + BLDLIBRARY='-L. -lpython$(LDVERSION)' |
| + ;; |
| + esac |
| else # shared is disabled |
| PY_ENABLE_SHARED=0 |
| case $ac_sys_system in |
| @@ -1212,6 +1219,10 @@ |
| LDLIBRARY='libpython$(LDVERSION).dll.a' |
| ;; |
| esac |
| + case $host in |
| + *-*-mingw*) |
| + LDLIBRARY='libpython$(LDVERSION).a';; |
| + esac |
| fi |
| |
| if test "$cross_compiling" = yes; then |
| @@ -2760,6 +2771,12 @@ |
| LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";; |
| *) LDSHARED="ld";; |
| esac |
| + case $host in |
| + *-*-mingw*) |
| + LDSHARED='$(CC) -shared -Wl,--enable-auto-image-base' |
| + LDCXXSHARED='$(CXX) -shared -Wl,--enable-auto-image-base' |
| + ;; |
| + esac |
| fi |
| AC_MSG_RESULT($LDSHARED) |
| LDCXXSHARED=${LDCXXSHARED-$LDSHARED} |
| @@ -5478,7 +5495,8 @@ |
| dnl "errmap.h" from $srcdir/PC. |
| dnl Note we cannot use BASECPPFLAGS as autogenerated pyconfig.h |
| dnl has to be before customized located in ../PC. |
| - CPPFLAGS="-I\$(srcdir)/PC $CPPFLAGS" |
| + dnl (-I. at end is workaround for setup.py logic) |
| + CPPFLAGS="-I\$(srcdir)/PC $CPPFLAGS -I." |
| ;; |
| esac |
| |