From 8d3e1f8f7a17029e1047ece9a9d148edf2c8da79 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Fri, 4 Apr 2008 19:33:09 +0000 Subject: [PATCH] If you build a compiler with TARGET_BIG_ENDIAN, and then try to build a little endian kernel, things break. Be explicit about the endian choice by setting it in the little endian case as well. --- sys/conf/Makefile.arm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/conf/Makefile.arm b/sys/conf/Makefile.arm index 12660f52bf9..6bb5e00bc20 100644 --- a/sys/conf/Makefile.arm +++ b/sys/conf/Makefile.arm @@ -40,6 +40,10 @@ SYSTEM_DEP:= ${SYSTEM_DEP:$S/conf/ldscript.$M=ldscript.$M} CC += -mbig-endian SYSTEM_LD += -EB LD += -EB +.else +CC += -mlittle-endian +SYSTEM_LD += -EL +LD += -EL .endif