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.

52 lines
1.4KB

  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:01:07.206954700 +0300
  3. +++ Python-3.8.0/configure.ac 2019-10-22 10:01:18.470174500 +0300
  4. @@ -1204,6 +1204,13 @@
  5. ;;
  6. esac
  7. + case $host in
  8. + *)
  9. + LDLIBRARY='libpython$(LDVERSION).dll.a'
  10. + DLLLIBRARY='libpython$(LDVERSION).dll'
  11. + BLDLIBRARY='-L. -lpython$(LDVERSION)'
  12. + ;;
  13. + esac
  14. else # shared is disabled
  15. PY_ENABLE_SHARED=0
  16. case $ac_sys_system in
  17. @@ -1212,6 +1219,10 @@
  18. LDLIBRARY='libpython$(LDVERSION).dll.a'
  19. ;;
  20. esac
  21. + case $host in
  22. + *)
  23. + LDLIBRARY='libpython$(LDVERSION).a';;
  24. + esac
  25. fi
  26. if test "$cross_compiling" = yes; then
  27. @@ -2760,6 +2771,12 @@
  28. LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";;
  29. *) LDSHARED="ld";;
  30. esac
  31. + case $host in
  32. + *)
  33. + LDSHARED='$(CC) -shared -Wl,--enable-auto-image-base'
  34. + LDCXXSHARED='$(CXX) -shared -Wl,--enable-auto-image-base'
  35. + ;;
  36. + esac
  37. fi
  38. AC_MSG_RESULT($LDSHARED)
  39. LDCXXSHARED=${LDCXXSHARED-$LDSHARED}
  40. @@ -5478,7 +5495,8 @@
  41. dnl "errmap.h" from $srcdir/PC.
  42. dnl Note we cannot use BASECPPFLAGS as autogenerated pyconfig.h
  43. dnl has to be before customized located in ../PC.
  44. - CPPFLAGS="-I\$(srcdir)/PC $CPPFLAGS"
  45. + dnl (-I. at end is workaround for setup.py logic)
  46. + CPPFLAGS="-I\$(srcdir)/PC $CPPFLAGS -I."
  47. ;;
  48. esac