aboutsummaryrefslogtreecommitdiff
path: root/ld/configure.ac
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2021-04-12 18:33:45 +0930
committerAlan Modra <amodra@gmail.com>2021-04-13 00:35:44 +0930
commit43e05cd4f48b550023819d823fec02abf54e26d3 (patch)
tree8db8be01bef7bae060fcfef55b7d6d0843731274 /ld/configure.ac
parent04977957ecfc723bc4f57460e8e4eed7e6b69f32 (diff)
downloadgdb-43e05cd4f48b550023819d823fec02abf54e26d3.zip
gdb-43e05cd4f48b550023819d823fec02abf54e26d3.tar.gz
gdb-43e05cd4f48b550023819d823fec02abf54e26d3.tar.bz2
ENABLE_CHECKING in bfd, opcodes, binutils, ld
gas already has this. Here it enables checking hash table type passed to elf_link_hash_lookup and elf_link_hash_traverse. bfd/ * elf-bfd.h (ENABLE_CHECKING): Define. (elf_link_hash_lookup): Abort if wrong type of hash table. (elf_link_hash_traverse): Likewise. * configure.ac (--enable-checking): Add support. * config.in: Regenerate. * configure: Regenerate. binutils/ * configure.ac (--enable-checking): Add support. * config.in: Regenerate. * configure: Regenerate. ld/ * configure.ac (--enable-checking): Add support. * config.in: Regenerate. * configure: Regenerate. opcodes/ * configure.ac (--enable-checking): Add support. * config.in: Regenerate. * configure: Regenerate.
Diffstat (limited to 'ld/configure.ac')
-rw-r--r--ld/configure.ac13
1 files changed, 13 insertions, 0 deletions
diff --git a/ld/configure.ac b/ld/configure.ac
index 5429f22..8ea97c4 100644
--- a/ld/configure.ac
+++ b/ld/configure.ac
@@ -37,6 +37,19 @@ AC_PROG_INSTALL
LT_INIT
ACX_LARGEFILE
+ac_checking=
+. ${srcdir}/../bfd/development.sh
+test "$development" = true && ac_checking=yes
+AC_ARG_ENABLE(checking,
+[ --enable-checking enable run-time checks],
+[case "${enableval}" in
+ no|none) ac_checking= ;;
+ *) ac_checking=yes ;;
+esac])dnl
+if test x$ac_checking != x ; then
+ AC_DEFINE(ENABLE_CHECKING, 1, [Define if you want run-time sanity checks.])
+fi
+
AC_ARG_WITH(lib-path, [ --with-lib-path=dir1:dir2... set default LIB_PATH],LIB_PATH=$withval)
AC_ARG_ENABLE(targets,
[ --enable-targets alternative target configurations],