Honor ARM_BIG_ENDIAN by adding -mbig-endian to CFLAGS and -EB to LDFLAGS if
it is defined.
This commit is contained in:
parent
83a16c4049
commit
65c1492ca1
@ -187,6 +187,11 @@ MACHINE_CPU = itanium
|
||||
_CPUCFLAGS += -mieee
|
||||
.endif
|
||||
|
||||
.if ${MACHINE_ARCH} == "arm" && defined(ARM_BIG_ENDIAN)
|
||||
CFLAGS += -mbig-endian
|
||||
LDFLAGS += -EB
|
||||
.endif
|
||||
|
||||
# NB: COPTFLAGS is handled in /usr/src/sys/conf/kern.pre.mk
|
||||
|
||||
.if !defined(NO_CPU_CFLAGS)
|
||||
|
Loading…
Reference in New Issue
Block a user