summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2015-03-11 21:56:49 +0000
committerVincent Sanders <vince@kyllikki.org>2015-03-11 21:57:53 +0000
commite5cfda8f32c074c27cc4ecfe801966b39938e8a5 (patch)
tree98aec21f1103e16647db99ebeca8f6bc71d3a114
parent8286fe2d4dd6cbe8554947539ac0f10922353fb6 (diff)
downloadtoolchains-e5cfda8f32c074c27cc4ecfe801966b39938e8a5.tar.gz
toolchains-e5cfda8f32c074c27cc4ecfe801966b39938e8a5.tar.bz2
Make the SDK environment only use the first instance of the tools it finds
-rw-r--r--sdk/Makefile8
1 files 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