diff options
Diffstat (limited to 'arch/mips/functions')
-rw-r--r-- | arch/mips/functions | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/mips/functions b/arch/mips/functions index 91a1d9a..4bf0501 100644 --- a/arch/mips/functions +++ b/arch/mips/functions @@ -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 } |