summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Reinauer <stefan.reinauer@coreboot.org>2015-06-08 19:54:01 +0200
committerStefan Reinauer <stefan.reinauer@coreboot.org>2015-06-08 20:56:28 +0200
commit6404dffe0c4698acfe7302236caf2553fae00b05 (patch)
tree5b644793e612ba954e4cc86af8f2797f1a7f0839
parente7757bdeee42cf33f106589d0757cccca0bf3041 (diff)
downloadcoreboot-6404dffe0c4698acfe7302236caf2553fae00b05.tar.xz
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 <stefan.reinauer@coreboot.org> Reviewed-on: http://review.coreboot.org/10464 Reviewed-by: Patrick Georgi <pgeorgi@google.com> Tested-by: build bot (Jenkins)
-rwxr-xr-xutil/xcompile/xcompile2
1 files changed, 2 insertions, 0 deletions
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`"
}