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 <patrick@georgi-clan.de>
Reviewed-on: http://review.coreboot.org/10795
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Tested-by: build bot (Jenkins)
This commit is contained in:
Patrick Georgi 2015-07-04 23:28:54 +02:00 committed by Patrick Georgi
parent 630ad918d4
commit 8d7b719c0e
1 changed files with 2 additions and 2 deletions

View File

@ -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() {