diff -r 4f9efd2c6627 -r 504b0759c149 scripts/build/libc/eglibc.sh --- a/scripts/build/libc/eglibc.sh Fri Jul 29 14:42:20 2011 +0200 +++ b/scripts/build/libc/eglibc.sh Fri Nov 18 11:47:30 2011 +0800 @@ -152,9 +152,9 @@ CT_DoExecLog ALL make ${JOBSFLAGS} # Set the localedef endianness option - case "${CT_ARCH_BE},${CT_ARCH_LE}" in - y,) localedef_opts+=(--big-endian);; - ,y) localedef_opts+=(--little-endian);; + case "${CT_ARCH_ENDIAN}" in + big) localedef_opts+=(--big-endian);; + little) localedef_opts+=(--little-endian);; esac # Set the localedef option for the target's uint32_t alignment in bytes.