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.

41 lines
1.3KB

  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:02:59.122551400 +0300
  3. +++ Python-3.8.0/configure.ac 2019-10-22 10:03:46.312634200 +0300
  4. @@ -3071,10 +3071,19 @@
  5. fi
  6. # check if we need libintl for locale functions
  7. +case $host in
  8. + *)
  9. + dnl Native windows build don't use libintl (see _localemodule.c).
  10. + dnl Also we don't like setup.py to add "intl" library to the list
  11. + dnl when build _locale module.
  12. + ;;
  13. + *)
  14. AC_CHECK_LIB(intl, textdomain,
  15. [AC_DEFINE(WITH_LIBINTL, 1,
  16. [Define to 1 if libintl is needed for locale functions.])
  17. LIBS="-lintl $LIBS"])
  18. + ;;
  19. +esac
  20. # checks for system dependent C++ extensions support
  21. case "$ac_sys_system" in
  22. diff -Naur Python-3.8.0-orig/Modules/_localemodule.c Python-3.8.0/Modules/_localemodule.c
  23. --- Python-3.8.0-orig/Modules/_localemodule.c 2019-10-14 16:34:47.000000000 +0300
  24. +++ Python-3.8.0/Modules/_localemodule.c 2019-10-22 10:03:46.718235000 +0300
  25. @@ -12,6 +12,13 @@
  26. #define PY_SSIZE_T_CLEAN
  27. #include "Python.h"
  28. #include "pycore_fileutils.h"
  29. +#ifdef __MINGW32__
  30. +/* The header libintl.h and library libintl may exist on mingw host.
  31. + * To be compatible with MSVC build we has to undef some defines.
  32. + */
  33. +#undef HAVE_LIBINTL_H
  34. +#undef HAVE_BIND_TEXTDOMAIN_CODESET
  35. +#endif
  36. #include <stdio.h>
  37. #include <locale.h>