summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2010-09-27 11:02:52 +0800
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2010-11-17 12:14:56 +0800
commitf7a37ae14baab921d349b3a3c209cb0fe99fb534 (patch)
tree9205457866932dc66d4b90b1b7d7301cea041dfb
parentfa1fdeb35097d78d42ed0444eee69b6fa818ff83 (diff)
downloadbarebox-f7a37ae14baab921d349b3a3c209cb0fe99fb534.tar.gz
barebox-f7a37ae14baab921d349b3a3c209cb0fe99fb534.tar.xz
x86: add 64bit host build support
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
-rw-r--r--arch/x86/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/Makefile b/arch/x86/Makefile
index 57c5dbc3b0..8ab40b6459 100644
--- a/arch/x86/Makefile
+++ b/arch/x86/Makefile
@@ -5,7 +5,8 @@ machine-y := i386
TEXT_BASE = $(CONFIG_TEXT_BASE)
-CPPFLAGS += -march=i386 -DTEXT_BASE=$(TEXT_BASE) -P
+CPPFLAGS += -march=i386 -m32 -DTEXT_BASE=$(TEXT_BASE) -P
+LDFLAGS += -m elf_i386
ifndef CONFIG_MODULES
# Add cleanup flags