From 261102f69be8e0b169a1fb58557c49f1b61ef8c0 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Wed, 10 May 2017 22:03:54 +0200 Subject: [PATCH] UPSTREAM: 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. BUG=none BRANCH=none TEST=none Change-Id: Ibac78ca45bd0a4376e72eb15638a47efca32613e Signed-off-by: Patrick Georgi Original-Commit-Id: 6d3ce3a9960dff3ab6a6ff80d87361e9e2fed72f Original-Change-Id: I1e30d5518cf78e1d66925d6f2ccada60a43bb4f8 Original-Signed-off-by: Patrick Georgi Original-Reviewed-on: https://review.coreboot.org/19658 Original-Tested-by: build bot (Jenkins) Original-Reviewed-by: Edward O'Callaghan Original-Reviewed-by: Martin Roth Original-Reviewed-by: Philippe Mathieu-Daud Reviewed-on: https://chromium-review.googlesource.com/506199 Commit-Ready: Patrick Georgi Tested-by: Patrick Georgi Reviewed-by: Patrick Georgi --- util/xcompile/xcompile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)" }