diff --git a/Makefile b/Makefile index ac7115da30..33e35738bb 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