diff options
author | imp <imp@FreeBSD.org> | 2010-03-05 21:24:41 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2010-03-05 21:24:41 +0000 |
commit | b66fb663ce6ca65abe57b3820409d986f89a016b (patch) | |
tree | 834eb7c9addd2034cab37071e0a5e390893b48f6 /gnu/usr.bin/cc | |
parent | b2f5d383ab5f61d3ad1235e8fe99e925451e22bf (diff) | |
download | FreeBSD-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/usr.bin/cc')
-rw-r--r-- | gnu/usr.bin/cc/Makefile.inc | 4 |
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 |