diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2011-11-20 21:01:34 +0100 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2011-11-20 21:01:34 +0100 |
commit | 72f1c0b405f8ccb43bd13f0e0fcc5f796a095379 (patch) | |
tree | fe537a1ea3a45dc49a1fbbdd19feb059c73c4a8a | |
parent | 2df96537877d29adedd6676321c7d8fb52059f75 (diff) | |
download | crosstool-ng-72f1c0b405f8ccb43bd13f0e0fcc5f796a095379.tar.gz crosstool-ng-72f1c0b405f8ccb43bd13f0e0fcc5f796a095379.tar.bz2 crosstool-ng-72f1c0b405f8ccb43bd13f0e0fcc5f796a095379.zip |
scripts/functions: use endian string in tests
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
-rw-r--r-- | scripts/functions | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/functions b/scripts/functions index 46955a8f..2f15e3c8 100644 --- a/scripts/functions +++ b/scripts/functions @@ -950,13 +950,15 @@ CT_DoConfigSub() { # sample saving sequence. CT_DoBuildTargetTuple() { # Set the endianness suffix, and the default endianness gcc option - case "${CT_ARCH_BE},${CT_ARCH_LE}" in - y,) target_endian_eb=eb + case "${CT_ARCH_ENDIAN}" in + big) + target_endian_eb=eb target_endian_el= CT_ARCH_ENDIAN_CFLAG="-mbig-endian" CT_ARCH_ENDIAN_LDFLAG="-EB" ;; - ,y) target_endian_eb= + little) + target_endian_eb= target_endian_el=el CT_ARCH_ENDIAN_CFLAG="-mlittle-endian" CT_ARCH_ENDIAN_LDFLAG="-EL" |