diff -r 4f9efd2c6627 -r 5f557056c530 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 Sun Nov 20 21:06:36 2011 +0100 @@ -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.