Honor ARM_BIG_ENDIAN by adding -mbig-endian to CFLAGS and -EB to LDFLAGS if
it is defined.
This commit is contained in:
parent
bba93a0066
commit
b72f5c0f35
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=160534
@ -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