Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 1 | |
| 2 | Upstream-Status: Inappropriate [embedded specific] |
| 3 | |
| 4 | The binary _freeze_importlib is built and also used during build time to generate |
| 5 | importlib*.h files, this is impossible to do on a cross-compile environment, |
| 6 | this avoids executing the binary and forces it to use the packed importlib*.h files. |
| 7 | |
| 8 | |
| 9 | Signed-Off-By: Alejandro Hernandez <alejandro.hernandez@linux.intel.com> |
| 10 | |
| 11 | Index: Python-3.5.0/Makefile.pre.in |
| 12 | =================================================================== |
| 13 | --- Python-3.5.0.orig/Makefile.pre.in |
| 14 | +++ Python-3.5.0/Makefile.pre.in |
| 15 | @@ -700,12 +700,12 @@ Programs/_freeze_importlib.o: Programs/_ |
| 16 | Programs/_freeze_importlib: Programs/_freeze_importlib.o $(LIBRARY_OBJS_OMIT_FROZEN) |
| 17 | $(LINKCC) $(PY_LDFLAGS) -o $@ Programs/_freeze_importlib.o $(LIBRARY_OBJS_OMIT_FROZEN) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST) |
| 18 | |
| 19 | -Python/importlib_external.h: $(srcdir)/Lib/importlib/_bootstrap_external.py Programs/_freeze_importlib |
| 20 | - ./Programs/_freeze_importlib \ |
| 21 | +#Python/importlib_external.h: $(srcdir)/Lib/importlib/_bootstrap_external.py Programs/_freeze_importlib |
| 22 | +# ./Programs/_freeze_importlib \ |
| 23 | $(srcdir)/Lib/importlib/_bootstrap_external.py Python/importlib_external.h |
| 24 | |
| 25 | -Python/importlib.h: $(srcdir)/Lib/importlib/_bootstrap.py Programs/_freeze_importlib |
| 26 | - ./Programs/_freeze_importlib \ |
| 27 | +#Python/importlib.h: $(srcdir)/Lib/importlib/_bootstrap.py Programs/_freeze_importlib |
| 28 | +# ./Programs/_freeze_importlib \ |
| 29 | $(srcdir)/Lib/importlib/_bootstrap.py Python/importlib.h |
| 30 | |
| 31 | |