aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2016-12-28 21:59:34 +1030
committerAlan Modra <amodra@gmail.com>2016-12-28 22:12:11 +1030
commit0fa6f7cee7dedb600799234b1e2d52c5b0da8f96 (patch)
tree3240aac540f1492e5b36d2bb61fd9fa28c109972 /opcodes/configure.ac
parentUse dynrelro for symbols in relro sections too (diff)
downloadbinutils-gdb-0fa6f7cee7dedb600799234b1e2d52c5b0da8f96.tar.gz
binutils-gdb-0fa6f7cee7dedb600799234b1e2d52c5b0da8f96.tar.bz2
binutils-gdb-0fa6f7cee7dedb600799234b1e2d52c5b0da8f96.zip
Check bfd support for bfd_mips_elf_get_abiflags in mips make rule
The previous scheme with a dependency in opcodes on libbfd.la broke "make distclean". * configure.ac: Revert 2016-12-23. * Makefile.am: Likewise. (MIPS_DEFS): Define. (mips-dis.lo): Add rule. * Makefile.in: Regenerate. * aclocal.m4: Regenerate. * config.in: Regenerate. * configure: Regenerate.
Diffstat (limited to 'opcodes/configure.ac')
-rw-r--r--opcodes/configure.ac19
1 files changed, 0 insertions, 19 deletions
diff --git a/opcodes/configure.ac b/opcodes/configure.ac
index b0825beb9a2..3475d491c5f 100644
--- a/opcodes/configure.ac
+++ b/opcodes/configure.ac
@@ -210,25 +210,6 @@ AC_SUBST(SHARED_DEPENDENCIES)
# target-specific stuff:
-# Check if `bfd_mips_elf_get_abiflags' is present in BFD, needed by
-# `mips-dis.c'. Avoid using AC_CHECK_LIB as it uses a cache variable
-# which could hold the wrong value if we are rerun due to the
-# `../bfd/libbfd.la' dependency for `config.status', so use a handcoded
-# sequence which is equivalent but does not use the cache.
-CYG_AC_PATH_BFD
-AC_MSG_CHECKING([for bfd_mips_elf_get_abiflags in -lbfd])
-opcodes_save_LIBS=$LIBS
-LIBS="$BFDLIB -lbfd ../libiberty/libiberty.a `test -e ../bfd/libbfd.la && . ../bfd/libbfd.la; echo $dependency_libs`"
-AC_LINK_IFELSE([AC_LANG_CALL([], [bfd_mips_elf_get_abiflags])],
- [opcodes_lib_bfd_bfd_mips_elf_get_abiflags=yes],
- [opcodes_lib_bfd_bfd_mips_elf_get_abiflags=no])
-LIBS=$opcodes_save_LIBS
-AC_MSG_RESULT([$opcodes_lib_bfd_bfd_mips_elf_get_abiflags])
-if test x"$opcodes_lib_bfd_bfd_mips_elf_get_abiflags" = xyes; then
- AC_DEFINE([HAVE_BFD_MIPS_ELF_GET_ABIFLAGS], [1],
- [Define to 1 if you have the `bfd_mips_elf_get_abiflags' function.])
-fi
-
# Canonicalize the secondary target names.
if test -n "$enable_targets" ; then
for targ in `echo $enable_targets | sed 's/,/ /g'`