]> git.ipfire.org Git - thirdparty/kmod.git/commit
build: Do not force diagnostics-color flag
authorMike Auty <ikelos@gentoo.org>
Fri, 5 Dec 2014 00:49:13 +0000 (00:49 +0000)
committerLucas De Marchi <lucas.demarchi@intel.com>
Wed, 17 Dec 2014 02:41:01 +0000 (00:41 -0200)
commitfd56638aed3fe147015bfa10ed4a5f7491303cb4
treebc6e0bfe614a3f5fb9a8dbd30fc813ede4ae87aa
parent1dd4ff56f62942243e0959c4f274bf0f1f601ae6
build: Do not force diagnostics-color flag

The -fdiagnostics-color flag is only available on GCC >= 4.9, for
older versions this could raise an error in certain circumstances
(such as when using ccache).  Instead, since -fdiagnostic-color=auto
by default  in gcc-4.9, simply set the required environment variable
to the default one if it's undefined.

Based mostly on the systemd commit f44541bc by Michal Schmidt.
Makefile.am
configure.ac