This assists both distcc and ccache in doing their jobs properly.
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
2R4K3T22W6X2PHJBJ35HUQZCD2XBX5HU2655GHAZNHZ6S5NAX3LQC GCC := gcc-$(GCC_VER)GXX := g++-$(GCC_VER)elseGCC := gccGXX := g++
# We do this in a separate variable because if we# specify GCC_VER on the make command-line, the# variable is immutable, and we can't add the dash.GCC_VER_SUFFIX:=-$(GCC_VER)endif# Attempt to use a full compiler name, to make# distcc builds work nicely.LMACH := $(shell gcc -dumpmachine)-ifeq ($(LMACH),-)LMACH :=endififeq ($(shell which $(LMACH)gcc$(GCC_VER_SUFFIX) 2> /dev/null),)LMACH :=