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.

50 lines
2.4KB

  1. diff -Naur Python-3.8.0-orig/Makefile.pre.in Python-3.8.0/Makefile.pre.in
  2. --- Python-3.8.0-orig/Makefile.pre.in 2019-10-22 10:03:21.368190400 +0300
  3. +++ Python-3.8.0/Makefile.pre.in 2019-10-22 10:03:31.336607900 +0300
  4. @@ -710,20 +710,20 @@
  5. Programs/_freeze_importlib.o: Programs/_freeze_importlib.c Makefile
  6. -Programs/_freeze_importlib: Programs/_freeze_importlib.o $(LIBRARY_OBJS_OMIT_FROZEN)
  7. +Programs/_freeze_importlib$(EXE): Programs/_freeze_importlib.o $(LIBRARY_OBJS_OMIT_FROZEN)
  8. $(LINKCC) $(PY_CORE_LDFLAGS) -o $@ Programs/_freeze_importlib.o $(LIBRARY_OBJS_OMIT_FROZEN) $(LIBS) $(MODLIBS) $(SYSLIBS)
  9. .PHONY: regen-importlib
  10. -regen-importlib: Programs/_freeze_importlib
  11. +regen-importlib: Programs/_freeze_importlib$(EXE)
  12. # Regenerate Python/importlib_external.h
  13. # from Lib/importlib/_bootstrap_external.py using _freeze_importlib
  14. - ./Programs/_freeze_importlib importlib._bootstrap_external \
  15. + ./Programs/_freeze_importlib$(EXE) importlib._bootstrap_external \
  16. $(srcdir)/Lib/importlib/_bootstrap_external.py \
  17. $(srcdir)/Python/importlib_external.h.new
  18. $(UPDATE_FILE) $(srcdir)/Python/importlib_external.h $(srcdir)/Python/importlib_external.h.new
  19. # Regenerate Python/importlib.h from Lib/importlib/_bootstrap.py
  20. # using _freeze_importlib
  21. - ./Programs/_freeze_importlib importlib._bootstrap \
  22. + ./Programs/_freeze_importlib$(EXE) importlib._bootstrap \
  23. $(srcdir)/Lib/importlib/_bootstrap.py \
  24. $(srcdir)/Python/importlib.h.new
  25. $(UPDATE_FILE) $(srcdir)/Python/importlib.h $(srcdir)/Python/importlib.h.new
  26. @@ -1781,7 +1781,7 @@
  27. find build -name '*.py[co]' -exec rm -f {} ';' || true
  28. -rm -f pybuilddir.txt
  29. -rm -f Lib/lib2to3/*Grammar*.pickle
  30. - -rm -f Programs/_testembed Programs/_freeze_importlib
  31. + -rm -f Programs/_testembed Programs/_freeze_importlib$(EXE)
  32. -find build -type f -a ! -name '*.gc??' -exec rm -f {} ';'
  33. -rm -f Include/pydtrace_probes.h
  34. -rm -f profile-gen-stamp
  35. diff -Naur Python-3.8.0-orig/Programs/_freeze_importlib.c Python-3.8.0/Programs/_freeze_importlib.c
  36. --- Python-3.8.0-orig/Programs/_freeze_importlib.c 2019-10-14 16:34:47.000000000 +0300
  37. +++ Python-3.8.0/Programs/_freeze_importlib.c 2019-10-22 10:03:31.757808700 +0300
  38. @@ -20,7 +20,7 @@
  39. {0, 0, 0} /* sentinel */
  40. };
  41. -#ifndef MS_WINDOWS
  42. +#ifndef _MSC_VER
  43. /* On Windows, this links with the regular pythonXY.dll, so this variable comes
  44. from frozen.obj. In the Makefile, frozen.o is not linked into this executable,
  45. so we define the variable here. */