The recent commit
b601c58034ed755fb765fc13782b6876bffd25d4 causes the
gdb configure to fail if --enable-targets=all was requested, but 64 bit
bfd was not enabled. This was due to a build failure first reported
against mips, and that I also encountered building on a 32 bit mips
system, but that looked like a general failure.
Further examination showed that this is, in fact, mips-specific (or at
least, not completely generic) as other targets like debian-i386 and
32-bit arm could build all targets just fine.
This commit restricts the new error to only trigger in mips hosts.
Approved-By: Andrew Burgess <aburgess@redhat.com>
if test x${enable_64_bit_bfd} = xyes; then
TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
else
- # If all targets were requested, but 64 bit bfd is not enabled,
- # the build will fail. See PR 28684.
- as_fn_error $? "--enable-targets=all requires --enable-64-bit-bfd" "$LINENO" 5
+ case ${host} in
+ mips*)
+ # If all targets were requested, but 64 bit bfd is not enabled,
+ # the build will fail. See PR 28684.
+ as_fn_error $? "--enable-targets=all requires --enable-64-bit-bfd" "$LINENO" 5
+ ;;
+ *)
+ TARGET_OBS='$(ALL_TARGET_OBS)'
+ ;;
+ esac
fi
fi
if test x${enable_64_bit_bfd} = xyes; then
TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
else
- # If all targets were requested, but 64 bit bfd is not enabled,
- # the build will fail. See PR 28684.
- AC_MSG_ERROR([--enable-targets=all requires --enable-64-bit-bfd])
+ case ${host} in
+ mips*)
+ # If all targets were requested, but 64 bit bfd is not enabled,
+ # the build will fail. See PR 28684.
+ AC_MSG_ERROR([--enable-targets=all requires --enable-64-bit-bfd])
+ ;;
+ *)
+ TARGET_OBS='$(ALL_TARGET_OBS)'
+ ;;
+ esac
fi
fi