summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Georgi <pgeorgi@google.com>2017-05-10 22:03:54 +0200
committerPatrick Georgi <pgeorgi@google.com>2017-05-16 10:52:37 +0200
commit6d3ce3a9960dff3ab6a6ff80d87361e9e2fed72f (patch)
tree02b7f0d4e8215ad94c59ab0702ae6fbc3bfe5354
parentbddf86a2594e809c32269508807fb4a4c50d573e (diff)
downloadcoreboot-6d3ce3a9960dff3ab6a6ff80d87361e9e2fed72f.tar.xz
xcompile: replace -print-librt-file-name with -print-libgcc-file-name
The former only exists with a custom patch while the latter is supported by clang and in the absense of libgcc even points to clang's own runtime libraries. Change-Id: I1e30d5518cf78e1d66925d6f2ccada60a43bb4f8 Signed-off-by: Patrick Georgi <pgeorgi@google.com> Reviewed-on: https://review.coreboot.org/19658 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Edward O'Callaghan <quasisec@google.com> Reviewed-by: Martin Roth <martinroth@google.com> Reviewed-by: Philippe Mathieu-Daudé <philippe.mathieu.daude@gmail.com>
-rwxr-xr-xutil/xcompile/xcompile2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile
index 32665f85ef..347ae8e2a5 100755
--- a/util/xcompile/xcompile
+++ b/util/xcompile/xcompile
@@ -207,7 +207,7 @@ detect_special_flags() {
detect_compiler_runtime() {
test -z "$CLANG" || \
- CC_RT_CLANG="$(${CLANG} ${CFLAGS_CLANG} -print-librt-file-name 2>/dev/null)"
+ CC_RT_CLANG="$(${CLANG} -print-libgcc-file-name 2>/dev/null)"
test -z "$GCC" || \
CC_RT_GCC="$(${GCC} ${CFLAGS_GCC} -print-libgcc-file-name)"
}