diff -r 2fa4b675a9a3 -r 65614732cfe7 arch/mips/functions --- a/arch/mips/functions Fri Sep 14 21:50:30 2007 +0000 +++ b/arch/mips/functions Sat Jul 26 15:14:48 2008 +0000 @@ -3,4 +3,10 @@ CT_DoArchValues() { # The architecture part of the tuple: CT_TARGET_ARCH="${CT_ARCH}${target_endian_el}" + + # Override CFLAGS for endianness: + case "${CT_ARCH_BE},${CT_ARCH_LE}" in + y,) CT_ARCH_ENDIAN_CFLAG="-EB";; + ,y) CT_ARCH_ENDIAN_CFLAG="-EL";; + esac }