aboutsummaryrefslogtreecommitdiff
path: root/gas/configure.in
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2001-12-18 14:33:38 +0000
committerNick Clifton <nickc@redhat.com>2001-12-18 14:33:38 +0000
commit131b098398134e6022d9f627fee29468f51a4396 (patch)
tree0c4c34e715383ed79b7fa12b18592a81b372bde8 /gas/configure.in
parent1cbbfaf9a2ea0058d9d93f470c0a0303b039fa64 (diff)
downloadgdb-131b098398134e6022d9f627fee29468f51a4396.zip
gdb-131b098398134e6022d9f627fee29468f51a4396.tar.gz
gdb-131b098398134e6022d9f627fee29468f51a4396.tar.bz2
Fix endian detection for configuration of sh-linux builds
Tidy up dates in ChangeLog.
Diffstat (limited to 'gas/configure.in')
-rw-r--r--gas/configure.in9
1 files changed, 7 insertions, 2 deletions
diff --git a/gas/configure.in b/gas/configure.in
index 03b612e..5174925 100644
--- a/gas/configure.in
+++ b/gas/configure.in
@@ -396,8 +396,13 @@ changequote([,])dnl
s390x-*-linux-gnu*) fmt=elf em=linux ;;
s390-*-linux-gnu*) fmt=elf em=linux ;;
- sh*eb-*-linux*) fmt=elf em=linux endian=big ;;
- sh*-*-linux*) fmt=elf em=linux endian=little ;;
+ sh*-*-linux*) fmt=elf em=linux
+ case ${cpu} in
+ sh*eb)
+ endian=big ;;
+ sh*)
+ endian=little ;;
+ esac ;;
sh-*-elf*) fmt=elf ;;
sh-*-coff*) fmt=coff bfd_gas=yes;;
sh-*-pe*) fmt=coff em=pe bfd_gas=yes endian=little ;;