From dc27ca9fcb64481b4557968ab3582e0db7831cf8 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Thu, 26 Mar 2015 17:38:03 +0100 Subject: [PATCH] toolchain: fix build with x86_64 gcc Commit f69a99db (coreboot: x86: enable gc-sections) overrides CFLAGS_x86_32, which looses (among other things) -m32, which in turn breaks the build with the standard distro gcc on a x86_64 machine. Fix it by appending the new flags instead. Change-Id: Ic3409a1aaa5b26139847258a7eb5c3468efdc6a3 Signed-off-by: Gerd Hoffmann Reviewed-on: http://review.coreboot.org/9053 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- toolchain.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toolchain.inc b/toolchain.inc index 86dd89d57a..24fb2536de 100644 --- a/toolchain.inc +++ b/toolchain.inc @@ -67,7 +67,7 @@ CFLAGS_arm64 := -ffunction-sections -fdata-sections CFLAGS_mipsel := -mips32r2 -G 0 -ffunction-sections -fdata-sections CFLAGS_mipsel += -mno-abicalls -fno-pic -CFLAGS_x86_32 := -ffunction-sections -fdata-sections +CFLAGS_x86_32 += -ffunction-sections -fdata-sections toolchain_to_dir = \ $(foreach arch,$(ARCH_SUPPORTED),\