From e5cfda8f32c074c27cc4ecfe801966b39938e8a5 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Wed, 11 Mar 2015 21:56:49 +0000 Subject: Make the SDK environment only use the first instance of the tools it finds --- sdk/Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sdk/Makefile b/sdk/Makefile index 499a03b..d1821e6 100644 --- a/sdk/Makefile +++ b/sdk/Makefile @@ -47,10 +47,10 @@ VERSION_SPIDERMONKEY := 1.7.0 path__ := $(GCCSDK_INSTALL_CROSSBIN):$(PATH) # Tools -cc__ := $(wildcard $(GCCSDK_INSTALL_CROSSBIN)/*gcc) -cxx__ := $(wildcard $(GCCSDK_INSTALL_CROSSBIN)/*g++) -ar__ := $(wildcard $(GCCSDK_INSTALL_CROSSBIN)/*ar) -ranlib__ := $(wildcard $(GCCSDK_INSTALL_CROSSBIN)/*ranlib) +cc__ := $(word 1,$(wildcard $(GCCSDK_INSTALL_CROSSBIN)/*gcc)) +cxx__ := $(word 1,$(wildcard $(GCCSDK_INSTALL_CROSSBIN)/*g++)) +ar__ := $(word 1,$(wildcard $(GCCSDK_INSTALL_CROSSBIN)/*ar)) +ranlib__ := $(word 1,$(wildcard $(GCCSDK_INSTALL_CROSSBIN)/*ranlib)) # Flags cflags__ := -I$(GCCSDK_INSTALL_ENV)/include -- cgit v1.2.3