summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2009-12-29 20:16:51 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2009-12-29 20:16:51 (GMT)
commit02768432e3a6b21664362d4e7c7e82a1a2299716 (patch)
treecdc5e6707727e88cf34be0fabda352b1661af760
parentf96424f56fb272f2064dbb1ed8d0872603088651 (diff)
config: fix generated config files when GREP_OPTIONS set --color=always
grep is used when generating some .in files (in config.gen). If GREP_OPTIONS contains --color=always, then the generated files will contains some escape sequences setting the color, and mconf would choke on those escape sequences. Always set and export an empty GREP_OPTIONS to avoid that. Issue reported by Kevin Kirkup <kevin dot kirkup at gmail dot com> : http://sourceware.org/ml/crossgcc/2009-12/msg00026.html (transplanted from a5020a1facffc046d23d39a71a1b8089ca84beac)
-rw-r--r--ct-ng.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/ct-ng.in b/ct-ng.in
index 8a60431..8efe168 100644
--- a/ct-ng.in
+++ b/ct-ng.in
@@ -32,6 +32,10 @@ include $(CT_LIB_DIR)/paths.mk
# bash.
export SHELL=$(bash)
+# GREP_OPTIONS=--color=always will break the generated .in files
+# We do not need any GREP_OPTIONS anyway, so set it to empty.
+export GREP_OPTIONS=
+
# Make the restart/stop steps availabe to scripts/crostool-NG.sh
export CT_STOP:=$(STOP)
export CT_RESTART:=$(RESTART)