|
|
@ -0,0 +1,37 @@ |
|
|
|
# --- SDE-COPYRIGHT-NOTE-BEGIN --- |
|
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|
|
|
# |
|
|
|
# Filename: package/.../python/use-hostpgen.patch.cross |
|
|
|
# Copyright (C) 2014 The OpenSDE Project |
|
|
|
# |
|
|
|
# More information can be found in the files COPYING and README. |
|
|
|
# |
|
|
|
# This patch file is dual-licensed. It is available under the license the |
|
|
|
# patched project is licensed under, as long as it is an OpenSource license |
|
|
|
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms |
|
|
|
# of the GNU General Public License as published by the Free Software |
|
|
|
# Foundation; either version 2 of the License, or (at your option) any later |
|
|
|
# version. |
|
|
|
# --- SDE-COPYRIGHT-NOTE-END --- |
|
|
|
|
|
|
|
Use the pgen we compiled at stage 0 and which can be run on the build host |
|
|
|
|
|
|
|
--- a/Makefile.pre.in 2014-03-12 11:29:38.642977159 +0100 |
|
|
|
+++ b/Makefile.pre.in 2014-03-12 11:57:01.161011331 +0100 |
|
|
|
@@ -231,6 +231,7 @@ |
|
|
|
########################################################################## |
|
|
|
# Parser |
|
|
|
PGEN= Parser/pgen$(EXE) |
|
|
|
+HOSTPGEN= python-pgen |
|
|
|
|
|
|
|
PSRCS= \ |
|
|
|
Parser/acceler.c \ |
|
|
|
@@ -598,7 +599,7 @@ |
|
|
|
$(GRAMMAR_H): $(GRAMMAR_INPUT) $(PGENSRCS) |
|
|
|
@$(MKDIR_P) Include |
|
|
|
$(MAKE) $(PGEN) |
|
|
|
- $(PGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C) |
|
|
|
+ $(HOSTPGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C) |
|
|
|
$(GRAMMAR_C): $(GRAMMAR_H) $(GRAMMAR_INPUT) $(PGENSRCS) |
|
|
|
$(MAKE) $(GRAMMAR_H) |
|
|
|
touch $(GRAMMAR_C) |