Files
MINGW-packages/mingw-w64-python3/0140-MINGW-preset-configure-defaults.patch
2016-07-12 14:49:26 +03:00

63 lines
2.0 KiB
Diff

diff -Naur Python-3.5.2-orig/configure.ac Python-3.5.2/configure.ac
--- Python-3.5.2-orig/configure.ac 2016-07-12 14:20:38.518800700 +0300
+++ Python-3.5.2/configure.ac 2016-07-12 14:20:38.790800700 +0300
@@ -898,6 +898,27 @@
AC_SUBST(PLATDIR)
AC_SUBST(PLATFORM_TRIPLET)
+# initialize default configuration
+py_config=
+case $host in
+ *-*-mingw*) py_config=mingw ;;
+esac
+if test -n "$py_config" ; then
+ AC_MSG_NOTICE([loading configure defaults from .../Misc/config_$py_config"])
+ . "$srcdir/Misc/config_$py_config"
+fi
+
+# initialize defaults for cross-builds
+if test "$cross_compiling" = yes; then
+ py_config=$host_os
+ case $py_config in
+ mingw32*) py_config=mingw32 ;;
+ esac
+ if test -f "$srcdir/Misc/cross_$py_config" ; then
+ AC_MSG_NOTICE([loading cross defaults from .../Misc/cross_$py_config"])
+ . "$srcdir/Misc/cross_$py_config"
+ fi
+fi
AC_MSG_CHECKING([for -Wl,--no-as-needed])
save_LDFLAGS="$LDFLAGS"
diff -Naur Python-3.5.2-orig/Misc/config_mingw Python-3.5.2/Misc/config_mingw
--- Python-3.5.2-orig/Misc/config_mingw 1970-01-01 03:00:00.000000000 +0300
+++ Python-3.5.2/Misc/config_mingw 2016-07-12 14:20:38.832800700 +0300
@@ -0,0 +1,12 @@
+# configure defaults for mingw* hosts
+
+# mingw functions to ignore
+ac_cv_func_ftruncate=ignore # implement it as _chsize
+
+# mingw-w64 functions to ignore
+ac_cv_func_truncate=ignore
+ac_cv_func_alarm=ignore
+
+# files to ignore
+ac_cv_file__dev_ptmx=ignore #NOTE: under MSYS environment device exist
+ac_cv_file__dev_ptc=no
diff -Naur Python-3.5.2-orig/Misc/cross_mingw32 Python-3.5.2/Misc/cross_mingw32
--- Python-3.5.2-orig/Misc/cross_mingw32 1970-01-01 03:00:00.000000000 +0300
+++ Python-3.5.2/Misc/cross_mingw32 2016-07-12 14:20:38.838300700 +0300
@@ -0,0 +1,11 @@
+# configure defaults for mingw32 host if cross-build
+
+ac_cv_little_endian_double=yes
+ac_cv_big_endian_double=no
+ac_cv_mixed_endian_double=no
+
+ac_cv_tanh_preserves_zero_sign=yes
+
+ac_cv_wchar_t_signed=no
+
+ac_cv_have_size_t_format=no