package/ccache: do not force colored diagnostics
authorYann E. MORIN <yann.morin.1998@free.fr>
Tue, 14 Feb 2017 17:24:32 +0000 (18:24 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 14 Feb 2017 19:55:00 +0000 (20:55 +0100)
When GCC_COLORS is set, ccache passes '-fdiagnostics-color' to GCC but
this flag requires GCC v4.9 or later. Older versions complain about the
unrecognized command line option.

Using GCC_COLORS in the context of Buildroot is seldom useful, so we
just unexport GCC_COLORS altogether.

Reported-by: Carlos Santos <casantos@datacom.ind.br>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Arnout Vandecappelle <arnout@mind.be>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Makefile

index dcda8fe0247a74075a88456005d07a0e7ca2296a..4db971b0cd8b9a8541824b8de4ebd8ca15615cd8 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -402,6 +402,7 @@ unexport QMAKESPEC
 unexport TERMINFO
 unexport MACHINE
 unexport O
+unexport GCC_COLORS
 
 GNU_HOST_NAME := $(shell support/gnuconfig/config.guess)