mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
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:
parent
c416972587
commit
8d3e1f8f7a
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue