summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2010-03-05 21:24:41 +0000
committerimp <imp@FreeBSD.org>2010-03-05 21:24:41 +0000
commitb66fb663ce6ca65abe57b3820409d986f89a016b (patch)
tree834eb7c9addd2034cab37071e0a5e390893b48f6 /gnu
parentb2f5d383ab5f61d3ad1235e8fe99e925451e22bf (diff)
downloadFreeBSD-src-b66fb663ce6ca65abe57b3820409d986f89a016b.zip
FreeBSD-src-b66fb663ce6ca65abe57b3820409d986f89a016b.tar.gz
Make little endian compiles produce little endian binaries on mips.
Submitted by: neel@
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/cc/Makefile.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/gnu/usr.bin/cc/Makefile.inc b/gnu/usr.bin/cc/Makefile.inc
index d7ed8a8..f797dc7 100644
--- a/gnu/usr.bin/cc/Makefile.inc
+++ b/gnu/usr.bin/cc/Makefile.inc
@@ -30,6 +30,10 @@ CFLAGS+= -DLONG_TYPE_SIZE=${LONG_TYPE_SIZE}
CFLAGS+= -DCROSS_COMPILE
.endif
+.if ${TARGET_ARCH} == "mips" && !defined(TARGET_BIG_ENDIAN)
+CFLAGS += -DTARGET_ENDIAN_DEFAULT=0
+.endif
+
.if defined(WANT_FORCE_OPTIMIZATION_DOWNGRADE)
CFLAGS+= -DFORCE_OPTIMIZATION_DOWNGRADE=${WANT_FORCE_OPTIMIZATION_DOWNGRADE}
.endif
OpenPOWER on IntegriCloud