summaryrefslogtreecommitdiffstats
path: root/toolchain.inc
diff options
context:
space:
mode:
authorMartin Roth <martin.roth@se-eng.com>2014-10-29 08:24:04 -0600
committerPatrick Georgi <pgeorgi@google.com>2014-10-29 16:19:12 +0100
commit94b54b96eec81a8007c048eb3f211709ca37bcb5 (patch)
tree79b259d539712dbfb640a511d13d2ec824a8c755 /toolchain.inc
parent21c48d27dde60fe73cf0e57ae64a473541461a20 (diff)
downloadcoreboot-94b54b96eec81a8007c048eb3f211709ca37bcb5.tar.gz
coreboot-94b54b96eec81a8007c048eb3f211709ca37bcb5.tar.bz2
coreboot-94b54b96eec81a8007c048eb3f211709ca37bcb5.zip
Pipe stderr to /dev/null when getting LIBCLANG_RT_FILE_NAME
Fix a warning when using gcc: i386-elf-gcc: error: unrecognized command line option '-print-librt-file-name' Change-Id: I421933ede9ddbddad37544a62e428c79e9ee2c8d Signed-off-by: Martin Roth <martin.roth@se-eng.com> Reviewed-on: http://review.coreboot.org/7249 Reviewed-by: Patrick Georgi <pgeorgi@google.com> Tested-by: build bot (Jenkins) Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Diffstat (limited to 'toolchain.inc')
-rw-r--r--toolchain.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/toolchain.inc b/toolchain.inc
index a572f98d4eb1..1f95b6b2d825 100644
--- a/toolchain.inc
+++ b/toolchain.inc
@@ -93,7 +93,7 @@ READELF_$(1) := $(READELF_$(2))
CFLAGS_$(1) += $$(CFLAGS_common) $$(CFLAGS_$(2))
CPPFLAGS_$(1) += $$(CPPFLAGS_common) $$(CPPFLAGS_$(2))
LIBGCC_FILE_NAME_$(1) = $(wildcard $(shell $(CC_$(2)) $(CFLAGS_$(2)) -print-libgcc-file-name))
-LIBCLANG_RT_FILE_NAME_$(1) = $(shell $(CC_$(2)) $(CFLAGS_$(2)) -print-librt-file-name)
+LIBCLANG_RT_FILE_NAME_$(1) = $(shell $(CC_$(2)) $(CFLAGS_$(2)) -print-librt-file-name 2>/dev/null)
endef
# define_class: Allows defining any program as dynamic class and compiler tool