From 8d60fe40547b725086b381f2848cb0da4f9ff9fb Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Tue, 12 Sep 2006 07:37:02 +0000 Subject: [PATCH] Default to big endian ARM if "TARGET_BIG_ENDIAN" is defined, and set an ARM target default. --- gnu/usr.bin/cc/Makefile.tgt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gnu/usr.bin/cc/Makefile.tgt b/gnu/usr.bin/cc/Makefile.tgt index 6182b69a4d5e..8d3e7b99e408 100644 --- a/gnu/usr.bin/cc/Makefile.tgt +++ b/gnu/usr.bin/cc/Makefile.tgt @@ -6,6 +6,10 @@ TARGET_ARCH?= ${MACHINE_ARCH} GCC_CPU= alpha .elif ${TARGET_ARCH} == "arm" GCC_CPU= arm +TARGET_CPU_DEFAULT= TARGET_CPU_xscale +.if defined(TARGET_BIG_ENDIAN) +CFLAGS+= -DTARGET_ENDIAN_DEFAULT=ARM_FLAG_BIG_END +.endif .elif ${TARGET_ARCH} == "i386" || ${TARGET_ARCH} == "amd64" GCC_CPU= i386 .elif ${TARGET_ARCH} == "ia64"