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.
This commit is contained in:
Warner Losh 2008-04-04 19:33:09 +00:00
parent c416972587
commit 8d3e1f8f7a

View File

@ -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