From 6404dffe0c4698acfe7302236caf2553fae00b05 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Mon, 8 Jun 2015 19:54:01 +0200 Subject: xcompile: Fix errors thrown during make gitconfig $ make gitconfig util/xcompile/xcompile: line 164: -print-librt-file-name: command not found util/xcompile/xcompile: line 164: -print-librt-file-name: command not found util/xcompile/xcompile: line 164: -print-librt-file-name: command not found util/xcompile/xcompile: line 164: -print-librt-file-name: command not found [..] Change-Id: Ib477566e3841e419aa7880c912636540a0ad5432 Signed-off-by: Stefan Reinauer Reviewed-on: http://review.coreboot.org/10464 Reviewed-by: Patrick Georgi Tested-by: build bot (Jenkins) --- util/xcompile/xcompile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'util') diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile index 8b20d662f5..97dd7c4004 100755 --- a/util/xcompile/xcompile +++ b/util/xcompile/xcompile @@ -161,7 +161,9 @@ detect_special_flags() { } detect_compiler_runtime() { + test -z "$CLANG" || \ CC_RT_CLANG="`${CLANG} ${CFLAGS} -print-librt-file-name`" + test -z "$GCC" || \ CC_RT_GCC="`${GCC} ${CFLAGS} -print-libgcc-file-name`" } -- cgit v1.2.3