From 8d7b719c0e8c6f50315e6ea8f13ddb188130aa53 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Sat, 4 Jul 2015 23:28:54 +0200 Subject: xcompile: ask for compiler runtime using appropriate CFLAGS xcompile keeps two CFLAGS around now, for GCC and CLANG. Normally they're not required to request the libgcc/compiler-rt path, but with the multilib capable x86_64-elf target it's required to make it pick the right libgcc when used as i386-elf builder. Change-Id: I700e7aa5783dc36698dd2ab8a38642a144e80fe9 Signed-off-by: Patrick Georgi Reviewed-on: http://review.coreboot.org/10795 Reviewed-by: Stefan Reinauer Tested-by: build bot (Jenkins) --- util/xcompile/xcompile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile index 1af02ad28a..d2509dbc36 100755 --- a/util/xcompile/xcompile +++ b/util/xcompile/xcompile @@ -172,9 +172,9 @@ detect_special_flags() { detect_compiler_runtime() { test -z "$CLANG" || \ - CC_RT_CLANG="`${CLANG} ${CFLAGS} -print-librt-file-name 2>/dev/null`" + CC_RT_CLANG="`${CLANG} ${CFLAGS_CLANG} -print-librt-file-name 2>/dev/null`" test -z "$GCC" || \ - CC_RT_GCC="`${GCC} ${CFLAGS} -print-libgcc-file-name`" + CC_RT_GCC="`${GCC} ${CFLAGS_GCC} -print-libgcc-file-name`" } report_arch_toolchain() { -- cgit v1.2.3