From: Patrick Georgi Date: Fri, 20 May 2011 22:14:07 +0000 (+0000) Subject: Fix ccache behaviour if more than one ccache in PATH X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=coreboot.git;a=commitdiff_plain;h=96dafaf44dd2bb9068e3fb59bd80c1bf400b83ac Fix ccache behaviour if more than one ccache in PATH Signed-off-by: Patrick Georgi Acked-by: Stefan Reinauer git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6602 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- diff --git a/Makefile b/Makefile index ac7115da3..33e35738b 100644 --- a/Makefile +++ b/Makefile @@ -109,7 +109,7 @@ endif endif ifeq ($(CONFIG_CCACHE),y) -CCACHE:=$(wildcard $(addsuffix /ccache,$(subst :, ,$(PATH)))) +CCACHE:=$(word 1,$(wildcard $(addsuffix /ccache,$(subst :, ,$(PATH))))) ifeq ($(CCACHE),) $(error ccache selected, but not found in PATH) endif