Kaydet (Commit) e9ee3170 authored tarafından Martin Panter's avatar Martin Panter

Issue #22359: Avoid recursive $(MAKE); disable running cross-compiled pgen

Patches by Jonas Wagner and Xavier de Gaye.
üst f6f617c5
...@@ -200,6 +200,7 @@ UNICODE_OBJS= @UNICODE_OBJS@ ...@@ -200,6 +200,7 @@ UNICODE_OBJS= @UNICODE_OBJS@
PYTHON= python$(EXE) PYTHON= python$(EXE)
BUILDPYTHON= python$(BUILDEXE) BUILDPYTHON= python$(BUILDEXE)
cross_compiling=@cross_compiling@
PYTHON_FOR_BUILD=@PYTHON_FOR_BUILD@ PYTHON_FOR_BUILD=@PYTHON_FOR_BUILD@
_PYTHON_HOST_PLATFORM=@_PYTHON_HOST_PLATFORM@ _PYTHON_HOST_PLATFORM=@_PYTHON_HOST_PLATFORM@
HOST_GNU_TYPE= @host@ HOST_GNU_TYPE= @host@
...@@ -677,13 +678,19 @@ Modules/grpmodule.o: $(srcdir)/Modules/grpmodule.c $(srcdir)/Modules/posixmodule ...@@ -677,13 +678,19 @@ Modules/grpmodule.o: $(srcdir)/Modules/grpmodule.c $(srcdir)/Modules/posixmodule
Modules/pwdmodule.o: $(srcdir)/Modules/pwdmodule.c $(srcdir)/Modules/posixmodule.h Modules/pwdmodule.o: $(srcdir)/Modules/pwdmodule.c $(srcdir)/Modules/posixmodule.h
$(GRAMMAR_H): $(GRAMMAR_INPUT) $(PGENSRCS) $(GRAMMAR_H): $(GRAMMAR_INPUT) $(PGEN)
@$(MKDIR_P) Include @$(MKDIR_P) Include
$(MAKE) $(PGEN) if test "$(cross_compiling)" != "yes"; then \
$(PGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C) $(PGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C); \
$(GRAMMAR_C): $(GRAMMAR_H) $(GRAMMAR_INPUT) $(PGENSRCS) else \
$(MAKE) $(GRAMMAR_H) cp $(srcdir)/Include/graminit.h $(GRAMMAR_H); \
touch $(GRAMMAR_C) fi
$(GRAMMAR_C): $(GRAMMAR_H)
if test "$(cross_compiling)" != "yes"; then \
touch $(GRAMMAR_C); \
else \
cp $(srcdir)/Python/graminit.c $(GRAMMAR_C); \
fi
$(PGEN): $(PGENOBJS) $(PGEN): $(PGENOBJS)
$(CC) $(OPT) $(LDFLAGS) $(PGENOBJS) $(LIBS) -o $(PGEN) $(CC) $(OPT) $(LDFLAGS) $(PGENOBJS) $(LIBS) -o $(PGEN)
......
...@@ -225,6 +225,11 @@ Tests ...@@ -225,6 +225,11 @@ Tests
Build Build
----- -----
- Issue #22359: Avoid incorrect recursive $(MAKE), and disable the rules for
running pgen when cross-compiling. The pgen output is normally saved with
the source code anyway, and is still regenerated when doing a native build.
Patch by Jonas Wagner and Xavier de Gaye.
- Issue #19450: Update Windows builds to use SQLite 3.8.11.0. - Issue #19450: Update Windows builds to use SQLite 3.8.11.0.
- Issue #17603: Avoid error about nonexistant fileblocks.o file by using a - Issue #17603: Avoid error about nonexistant fileblocks.o file by using a
......
...@@ -743,6 +743,7 @@ build_os ...@@ -743,6 +743,7 @@ build_os
build_vendor build_vendor
build_cpu build_cpu
build build
cross_compiling
target_alias target_alias
host_alias host_alias
build_alias build_alias
......
...@@ -12,6 +12,7 @@ AC_INIT(python, PYTHON_VERSION, http://bugs.python.org/) ...@@ -12,6 +12,7 @@ AC_INIT(python, PYTHON_VERSION, http://bugs.python.org/)
AC_CONFIG_SRCDIR([Include/object.h]) AC_CONFIG_SRCDIR([Include/object.h])
AC_CONFIG_HEADER(pyconfig.h) AC_CONFIG_HEADER(pyconfig.h)
AC_SUBST(cross_compiling)
AC_CANONICAL_HOST AC_CANONICAL_HOST
AC_SUBST(build) AC_SUBST(build)
AC_SUBST(host) AC_SUBST(host)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment