Honor ARM_BIG_ENDIAN by adding -mbig-endian to CFLAGS and -EB to LDFLAGS if

it is defined.
This commit is contained in:
cognet 2006-07-20 21:28:07 +00:00
parent 83a16c4049
commit 65c1492ca1

View File

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