[ opcodes/ChangeLog ]
[deliverable/binutils-gdb.git] / opcodes / configure.in
index 5b0e8b1bcda0178da0b4cbbc5aaf0a5a5a6f9dcc..ee15b8a4718c9f5a0255e6f51255ddbbc13acf62 100644 (file)
@@ -209,6 +209,18 @@ if test x${all_targets} = xfalse ; then
        bfd_rs6000_arch)        ta="$ta ppc-dis.lo ppc-opc.lo" ;;
        bfd_s390_arch)          ta="$ta s390-dis.lo s390-opc.lo" ;;
        bfd_sh_arch)
+         # We can't decide what we want just from the CPU family.
+         # We want SH5 support unless a specific version of sh is
+         # specified, as in sh3-elf, sh3b-linux-gnu, etc.
+         # Include it just for ELF targets, since the SH5 bfd:s are ELF only.
+         for t in $target $canon_targets; do
+           case $t in
+             all |  sh64-* | sh-*-*elf* | shl-*-*elf* | sh-*-linux* | shl-*-linux*)
+                               ta="$ta sh64-dis.lo sh64-opc.lo"
+                               archdefs="$archdefs -DINCLUDE_SHMEDIA"
+                               break;;
+           esac;
+         done
                                ta="$ta sh-dis.lo" ;;
        bfd_sparc_arch)         ta="$ta sparc-dis.lo sparc-opc.lo" ;;
        bfd_tahoe_arch)         ;;
This page took 0.023987 seconds and 4 git commands to generate.