Browse Source

gcc: make colors optional based on the GCC_COLORS env var

Signed-off-by: Felix Fietkau <[email protected]>

SVN-Revision: 47642
Felix Fietkau 10 years ago
parent
commit
6638374f5d
1 changed files with 4 additions and 0 deletions
  1. 4 0
      toolchain/gcc/common.mk

+ 4 - 0
toolchain/gcc/common.mk

@@ -151,6 +151,10 @@ ifneq ($(CONFIG_mips)$(CONFIG_mipsel),)
   GCC_CONFIGURE += --with-mips-plt
 endif
 
+ifndef GCC_VERSION_4_8
+  GCC_CONFIGURE += --with-diagnostics-color=auto-if-env
+endif
+
 ifneq ($(CONFIG_SSP_SUPPORT),)
   GCC_CONFIGURE+= \
 		--enable-libssp