From 65c1492ca11539cd1f0545d2f67208d0094c451a Mon Sep 17 00:00:00 2001 From: cognet Date: Thu, 20 Jul 2006 21:28:07 +0000 Subject: [PATCH] Honor ARM_BIG_ENDIAN by adding -mbig-endian to CFLAGS and -EB to LDFLAGS if it is defined. --- share/mk/bsd.cpu.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/share/mk/bsd.cpu.mk b/share/mk/bsd.cpu.mk index 00fa03035c93..44a3814fae49 100644 --- a/share/mk/bsd.cpu.mk +++ b/share/mk/bsd.cpu.mk @@ -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)