mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-04-18 00:06:04 +00:00
scripts/functions: use endian string in tests
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
This commit is contained in:
parent
2df9653787
commit
72f1c0b405
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user