46 lines
2.1 KiB
Diff
46 lines
2.1 KiB
Diff
diff -Naur Python-3.5.0-orig/Makefile.pre.in Python-3.5.0/Makefile.pre.in
|
|
--- Python-3.5.0-orig/Makefile.pre.in 2015-09-21 13:42:21.427043200 +0300
|
|
+++ Python-3.5.0/Makefile.pre.in 2015-09-21 13:42:30.499208800 +0300
|
|
@@ -701,15 +701,15 @@
|
|
|
|
Programs/_freeze_importlib.o: Programs/_freeze_importlib.c Makefile
|
|
|
|
-Programs/_freeze_importlib: Programs/_freeze_importlib.o $(LIBRARY_OBJS_OMIT_FROZEN)
|
|
+Programs/_freeze_importlib$(EXE): Programs/_freeze_importlib.o $(LIBRARY_OBJS_OMIT_FROZEN)
|
|
$(LINKCC) $(PY_LDFLAGS) -o $@ Programs/_freeze_importlib.o $(LIBRARY_OBJS_OMIT_FROZEN) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST)
|
|
|
|
-Python/importlib_external.h: $(srcdir)/Lib/importlib/_bootstrap_external.py Programs/_freeze_importlib
|
|
- ./Programs/_freeze_importlib \
|
|
+Python/importlib_external.h: $(srcdir)/Lib/importlib/_bootstrap_external.py Programs/_freeze_importlib$(EXE)
|
|
+ ./Programs/_freeze_importlib$(EXE) \
|
|
$(srcdir)/Lib/importlib/_bootstrap_external.py Python/importlib_external.h
|
|
|
|
-Python/importlib.h: $(srcdir)/Lib/importlib/_bootstrap.py Programs/_freeze_importlib
|
|
- ./Programs/_freeze_importlib \
|
|
+Python/importlib.h: $(srcdir)/Lib/importlib/_bootstrap.py Programs/_freeze_importlib$(EXE)
|
|
+ ./Programs/_freeze_importlib$(EXE) \
|
|
$(srcdir)/Lib/importlib/_bootstrap.py Python/importlib.h
|
|
|
|
|
|
@@ -1596,7 +1596,7 @@
|
|
find build -name '*.py[co]' -exec rm -f {} ';' || true
|
|
-rm -f pybuilddir.txt
|
|
-rm -f Lib/lib2to3/*Grammar*.pickle
|
|
- -rm -f Programs/_testembed Programs/_freeze_importlib
|
|
+ -rm -f Programs/_testembed Programs/_freeze_importlib$(EXE)
|
|
|
|
profile-removal:
|
|
find . -name '*.gc??' -exec rm -f {} ';'
|
|
diff -Naur Python-3.5.0-orig/Programs/_freeze_importlib.c Python-3.5.0/Programs/_freeze_importlib.c
|
|
--- Python-3.5.0-orig/Programs/_freeze_importlib.c 2015-09-21 13:42:21.427043200 +0300
|
|
+++ Python-3.5.0/Programs/_freeze_importlib.c 2015-09-21 13:42:30.499208800 +0300
|
|
@@ -20,7 +20,7 @@
|
|
{0, 0, 0} /* sentinel */
|
|
};
|
|
|
|
-#ifndef MS_WINDOWS
|
|
+#ifndef _MSC_VER
|
|
/* On Windows, this links with the regular pythonXY.dll, so this variable comes
|
|
from frozen.obj. In the Makefile, frozen.o is not linked into this executable,
|
|
so we define the variable here. */
|