libc/eglibc: use endian string in tests
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Nov 20 21:06:36 2011 +0100 (2011-11-20)
changeset 27765f557056c530
parent 2775 c9980930fc8e
child 2777 a6c68712024f
libc/eglibc: use endian string in tests

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
scripts/build/libc/eglibc.sh
     1.1 --- a/scripts/build/libc/eglibc.sh	Sun Nov 20 21:05:36 2011 +0100
     1.2 +++ b/scripts/build/libc/eglibc.sh	Sun Nov 20 21:06:36 2011 +0100
     1.3 @@ -152,9 +152,9 @@
     1.4      CT_DoExecLog ALL make ${JOBSFLAGS}
     1.5  
     1.6      # Set the localedef endianness option
     1.7 -    case "${CT_ARCH_BE},${CT_ARCH_LE}" in
     1.8 -        y,) localedef_opts+=(--big-endian);;
     1.9 -        ,y) localedef_opts+=(--little-endian);;
    1.10 +    case "${CT_ARCH_ENDIAN}" in
    1.11 +        big)    localedef_opts+=(--big-endian);;
    1.12 +        little) localedef_opts+=(--little-endian);;
    1.13      esac
    1.14  
    1.15      # Set the localedef option for the target's uint32_t alignment in bytes.