diff options
author | cognet <cognet@FreeBSD.org> | 2007-09-18 23:34:42 +0000 |
---|---|---|
committer | cognet <cognet@FreeBSD.org> | 2007-09-18 23:34:42 +0000 |
commit | c4bc8a1abf047c4a81320a55542f263d2dbc79d2 (patch) | |
tree | 12bf0793e2a57dfd54d90d0a4ab165f49b0a12e1 /gnu | |
parent | 8faa6081c76eabd627df11869bdb99abec0dbdae (diff) | |
download | FreeBSD-src-c4bc8a1abf047c4a81320a55542f263d2dbc79d2.zip FreeBSD-src-c4bc8a1abf047c4a81320a55542f263d2dbc79d2.tar.gz |
Make gcc default to big endian when building it for a big endian target.
This was lost while migrating to gcc4.
Reported by: Michael Reifenberger <mike at Reifenberger dot com>
Approved by: re (blanket)
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/usr.bin/cc/cc_int/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gnu/usr.bin/cc/cc_int/Makefile b/gnu/usr.bin/cc/cc_int/Makefile index 7082c3e..a7ec17c 100644 --- a/gnu/usr.bin/cc/cc_int/Makefile +++ b/gnu/usr.bin/cc/cc_int/Makefile @@ -75,6 +75,10 @@ OBJS-md+= ${GCC_CPU}-c.o # Target specific, C specific object file C_TARGET_OBJS= +.if ${TARGET_ARCH} == "arm" && defined(TARGET_BIG_ENDIAN) +CFLAGS += -DTARGET_ENDIAN_DEFAULT=MASK_BIG_END +.endif + # Language-specific object files for C and Objective C. C_AND_OBJC_OBJS = attribs.o c-errors.o c-lex.o c-pragma.o c-decl.o c-typeck.o \ c-convert.o c-aux-info.o c-common.o c-opts.o c-format.o c-semantics.o \ |