diff -r 2fa4b675a9a3 -r 87802cb25a0f arch/mips/functions --- a/arch/mips/functions Fri Sep 14 21:50:30 2007 +0000 +++ b/arch/mips/functions Fri Jun 27 13:58:53 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 }