summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorPatrick Georgi <patrick@georgi-clan.de>2015-07-04 23:28:54 +0200
committerPatrick Georgi <pgeorgi@google.com>2015-07-04 23:37:01 +0200
commit8d7b719c0e8c6f50315e6ea8f13ddb188130aa53 (patch)
tree2e4d28f21b5d938128547902ab63843b2088995a /util
parent630ad918d45d6dee4f114fca457af6020ab8668d (diff)
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)
Diffstat (limited to 'util')
-rwxr-xr-xutil/xcompile/xcompile4
1 files 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() {