scripts/functions
changeset 2773 88e318f9540f
parent 2763 3f1798d436da
child 2785 49af7802dcd5
     1.1 --- a/scripts/functions	Mon Nov 07 21:40:28 2011 +0100
     1.2 +++ b/scripts/functions	Sun Nov 20 21:01:34 2011 +0100
     1.3 @@ -950,13 +950,15 @@
     1.4  # sample saving sequence.
     1.5  CT_DoBuildTargetTuple() {
     1.6      # Set the endianness suffix, and the default endianness gcc option
     1.7 -    case "${CT_ARCH_BE},${CT_ARCH_LE}" in
     1.8 -        y,) target_endian_eb=eb
     1.9 +    case "${CT_ARCH_ENDIAN}" in
    1.10 +        big)
    1.11 +            target_endian_eb=eb
    1.12              target_endian_el=
    1.13              CT_ARCH_ENDIAN_CFLAG="-mbig-endian"
    1.14              CT_ARCH_ENDIAN_LDFLAG="-EB"
    1.15              ;;
    1.16 -        ,y) target_endian_eb=
    1.17 +        little)
    1.18 +            target_endian_eb=
    1.19              target_endian_el=el
    1.20              CT_ARCH_ENDIAN_CFLAG="-mlittle-endian"
    1.21              CT_ARCH_ENDIAN_LDFLAG="-EL"