Cross-Platform build scripts for audio plugins
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
2.0KB

  1. diff -Naur Python-3.8.0-orig/configure.ac Python-3.8.0/configure.ac
  2. --- Python-3.8.0-orig/configure.ac 2019-10-22 10:00:41.996310400 +0300
  3. +++ Python-3.8.0/configure.ac 2019-10-22 10:00:43.025912200 +0300
  4. @@ -893,6 +893,28 @@
  5. fi
  6. AC_SUBST(MULTIARCH_CPPFLAGS)
  7. +# initialize default configuration
  8. +py_config=
  9. +case $host in
  10. + *-*-mingw*) py_config=mingw ;;
  11. +esac
  12. +if test -n "$py_config" ; then
  13. + AC_MSG_NOTICE([loading configure defaults from .../Misc/config_$py_config"])
  14. + . "$srcdir/Misc/config_$py_config"
  15. +fi
  16. +
  17. +# initialize defaults for cross-builds
  18. +if test "$cross_compiling" = yes; then
  19. + py_config=$host_os
  20. + case $py_config in
  21. + mingw32*) py_config=mingw32 ;;
  22. + esac
  23. + if test -f "$srcdir/Misc/cross_$py_config" ; then
  24. + AC_MSG_NOTICE([loading cross defaults from .../Misc/cross_$py_config"])
  25. + . "$srcdir/Misc/cross_$py_config"
  26. + fi
  27. +fi
  28. +
  29. AC_MSG_CHECKING([for -Wl,--no-as-needed])
  30. save_LDFLAGS="$LDFLAGS"
  31. LDFLAGS="$LDFLAGS -Wl,--no-as-needed"
  32. diff -Naur Python-3.8.0-orig/Misc/config_mingw Python-3.8.0/Misc/config_mingw
  33. --- Python-3.8.0-orig/Misc/config_mingw 1970-01-01 03:00:00.000000000 +0300
  34. +++ Python-3.8.0/Misc/config_mingw 2019-10-22 10:00:43.415912900 +0300
  35. @@ -0,0 +1,12 @@
  36. +# configure defaults for mingw* hosts
  37. +
  38. +# mingw functions to ignore
  39. +ac_cv_func_ftruncate=ignore # implement it as _chsize
  40. +
  41. +# mingw-w64 functions to ignore
  42. +ac_cv_func_truncate=ignore
  43. +ac_cv_func_alarm=ignore
  44. +
  45. +# files to ignore
  46. +ac_cv_file__dev_ptmx=ignore #NOTE: under MSYS environment device exist
  47. +ac_cv_file__dev_ptc=no
  48. diff -Naur Python-3.8.0-orig/Misc/cross_mingw32 Python-3.8.0/Misc/cross_mingw32
  49. --- Python-3.8.0-orig/Misc/cross_mingw32 1970-01-01 03:00:00.000000000 +0300
  50. +++ Python-3.8.0/Misc/cross_mingw32 2019-10-22 10:00:43.837113600 +0300
  51. @@ -0,0 +1,11 @@
  52. +# configure defaults for mingw32 host if cross-build
  53. +
  54. +ac_cv_little_endian_double=yes
  55. +ac_cv_big_endian_double=no
  56. +ac_cv_mixed_endian_double=no
  57. +
  58. +ac_cv_tanh_preserves_zero_sign=yes
  59. +
  60. +ac_cv_wchar_t_signed=no
  61. +
  62. +ac_cv_have_size_t_format=no