diff options
author | Warner Losh <imp@FreeBSD.org> | 2008-04-04 19:33:09 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2008-04-04 19:33:09 +0000 |
commit | 8d3e1f8f7a17029e1047ece9a9d148edf2c8da79 (patch) | |
tree | 72e8938d9b5116cf8dcca06c8cfa4eb620996515 /sys/conf/Makefile.arm | |
parent | c416972587c0a2a126270196c5b72218481a5b4e (diff) | |
download | src-8d3e1f8f7a17029e1047ece9a9d148edf2c8da79.tar.gz src-8d3e1f8f7a17029e1047ece9a9d148edf2c8da79.zip |
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.
Notes
Notes:
svn path=/head/; revision=177923
Diffstat (limited to 'sys/conf/Makefile.arm')
-rw-r--r-- | sys/conf/Makefile.arm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/conf/Makefile.arm b/sys/conf/Makefile.arm index 12660f52bf98..6bb5e00bc208 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 |