summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Georgi <patrick@georgi-clan.de>2014-05-17 14:52:28 +0200
committerPatrick Georgi <patrick@georgi-clan.de>2014-05-17 21:14:46 +0200
commit6bc44554b9df58465f6702828c4f663ab0e4d9ac (patch)
treedba1dfa6ae7db69925970896801898f426675448
parent4ebd3d9195731721e777186d6f78531bba29497e (diff)
build: don't call $(CC) -print-libgcc-file-name twice
Change-Id: Iaeeb8fc58e06c98273520e79999737da9ff3f872 Signed-off-by: Patrick Georgi <patrick@georgi-clan.de> Reviewed-on: http://review.coreboot.org/5768 Tested-by: build bot (Jenkins) Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
-rw-r--r--toolchain.inc3
1 files changed, 1 insertions, 2 deletions
diff --git a/toolchain.inc b/toolchain.inc
index d998a7eca4..b615bce7a4 100644
--- a/toolchain.inc
+++ b/toolchain.inc
@@ -63,8 +63,7 @@ STRIP_$(1) := $(STRIP_$(2))
READELF_$(1) := $(READELF_$(2))
CFLAGS_$(1) = $$(CFLAGS_common) $$(CFLAGS_$(2))
CPPFLAGS_$(1) = $$(CPPFLAGS_common) $$(CPPFLAGS_$(2))
-LIBGCC_FILE_NAME_$(1) = $(shell [ -r `$(CC_$(2)) -print-libgcc-file-name` ] && \
- $(CC_$(2)) -print-libgcc-file-name)
+LIBGCC_FILE_NAME_$(1) = $(wildcard $(shell $(CC_$(2)) -print-libgcc-file-name))
endef
# initialize standard toolchain (CC,AS and others) for give stage