diff options
| author | David E. O'Brien <obrien@FreeBSD.org> | 2006-09-29 01:50:03 +0000 |
|---|---|---|
| committer | David E. O'Brien <obrien@FreeBSD.org> | 2006-09-29 01:50:03 +0000 |
| commit | 95aab27634ae41a59d742d602ab38f45fc776f4f (patch) | |
| tree | ac7bcda8d0039da29b2bb87646bc339a47f0d76e /gnu | |
| parent | d2259dd3662a9fe0aec70cc94429a0eb6629eaec (diff) | |
Notes
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/usr.bin/cc/Makefile.tgt | 3 | ||||
| -rw-r--r-- | gnu/usr.bin/cc/cc_int/Makefile | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gnu/usr.bin/cc/Makefile.tgt b/gnu/usr.bin/cc/Makefile.tgt index 6182b69a4d5e..e7728c6fd8a8 100644 --- a/gnu/usr.bin/cc/Makefile.tgt +++ b/gnu/usr.bin/cc/Makefile.tgt @@ -6,6 +6,9 @@ TARGET_ARCH?= ${MACHINE_ARCH} GCC_CPU= alpha .elif ${TARGET_ARCH} == "arm" GCC_CPU= arm +.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" diff --git a/gnu/usr.bin/cc/cc_int/Makefile b/gnu/usr.bin/cc/cc_int/Makefile index c45565185d33..f671e4f8fb34 100644 --- a/gnu/usr.bin/cc/cc_int/Makefile +++ b/gnu/usr.bin/cc/cc_int/Makefile @@ -79,6 +79,10 @@ insn-$F.c: ${.OBJDIR}/../cc_tools/gen$F CFLAGS+= -DHAVE_CONFIG_H CFLAGS+= -DTARGET_NAME=\"${target}\" -DIN_GCC +.if ${TARGET_ARCH} == "arm" && defined(TARGET_BIG_ENDIAN) +CFLAGS += -DTARGET_ENDIAN_DEFAULT=ARM_FLAG_BIG_END +.endif + # c-pch.o needs extra defines. Replicate the rule here rather than # pollute compiler command line for all other files. c-pch.o: c-pch.c |
