summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2015-03-26 17:38:03 +0100
committerAaron Durbin <adurbin@google.com>2015-03-27 08:20:09 +0100
commitdc27ca9fcb64481b4557968ab3582e0db7831cf8 (patch)
tree504d1439afe845b863240e6e6e6429dc1e41a54c
parent90b994dc76513668c117cea32c47e089d70fafe1 (diff)
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 <kraxel@redhat.com> Reviewed-on: http://review.coreboot.org/9053 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@google.com>
-rw-r--r--toolchain.inc2
1 files changed, 1 insertions, 1 deletions
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),\