summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorPatrick Georgi <patrick@georgi-clan.de>2014-05-17 15:08:47 +0200
committerPatrick Georgi <patrick@georgi-clan.de>2014-05-17 21:14:52 +0200
commitb145b8301fe973f588bcd637bb5eb070b1f472d3 (patch)
treeb87f2f604bdd64799b3080df332db908348267ec /util
parent6bc44554b9df58465f6702828c4f663ab0e4d9ac (diff)
build: break compiler flags out of $(CC)
Having more than the executable in $(CC) only leads to trouble in a number of situations. Change-Id: I7642ca4068b3a3bd5798219d74de9e0eb85bb4e5 Signed-off-by: Patrick Georgi <patrick@georgi-clan.de> Reviewed-on: http://review.coreboot.org/5769 Tested-by: build bot (Jenkins) Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Diffstat (limited to 'util')
-rw-r--r--util/xcompile/xcompile3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile
index b342de308f..d133bd2a59 100644
--- a/util/xcompile/xcompile
+++ b/util/xcompile/xcompile
@@ -147,7 +147,8 @@ detect_special_flags() {
report_arch_toolchain() {
cat <<EOF
# elf${TWIDTH}-${TBFDARCH} toolchain (${GCCPREFIX}gcc)
-CC_${TARCH}:=${GCCPREFIX}gcc ${CFLAGS}
+CC_${TARCH}:=${GCCPREFIX}gcc
+CFLAGS_${TARCH}:=${CFLAGS}
CPP_${TARCH}:=${GCCPREFIX}cpp
AS_${TARCH}:=${GCCPREFIX}as ${ASFLAGS}
LD_${TARCH}:=${GCCPREFIX}ld${LINKER_SUFFIX} ${LDFLAGS}