Currently the endianness detection for MIPS in config.h is wrong. Because __mips__ is defined by gcc for both endianness on MIPS arch. __MIPSEB__ is the one which is defined for big endian MIPS.
I have attached the patch. -- Zhang, Le Gentoo/Loongson Developer http://zhangle.is-a-geek.org 0260 C902 B8F8 6506 6586 2B90 BC51 C808 1E4E 2973
diff --git a/config.h b/config.h index de6b0d7..99a8759 100644 --- a/config.h +++ b/config.h @@ -4,7 +4,7 @@ // ***************** Important Settings ******************** // define this if running on a big-endian CPU -#if !defined(IS_LITTLE_ENDIAN) && (defined(__BIG_ENDIAN__) || defined(__sparc) || defined(__sparc__) || defined(__hppa__) || defined(__mips__) || (defined(__MWERKS__) && !defined(__INTEL__))) +#if !defined(IS_LITTLE_ENDIAN) && (defined(__BIG_ENDIAN__) || defined(__sparc) || defined(__sparc__) || defined(__hppa__) || defined(__MIPSEB__) || (defined(__MWERKS__) && !defined(__INTEL__))) # define IS_BIG_ENDIAN #endif
pgpLvGwEThoCc.pgp
Description: PGP signature
