aboutsummaryrefslogtreecommitdiff
path: root/opcodes/configure.ac
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-12-04 00:28:14 -0500
committerMike Frysinger <vapier@gentoo.org>2022-01-01 12:49:07 -0500
commit1d5269c994bf4af088b1a9d0ed39825541623a99 (patch)
tree427712dedcd41fc7d1d0e8f837444ec8f6c6c762 /opcodes/configure.ac
parent3cc8ed6aaee33355a5d911a7401db3f1b05a2714 (diff)
downloadgdb-1d5269c994bf4af088b1a9d0ed39825541623a99.zip
gdb-1d5269c994bf4af088b1a9d0ed39825541623a99.tar.gz
gdb-1d5269c994bf4af088b1a9d0ed39825541623a99.tar.bz2
unify 64-bit bfd checks
Move the 64-bit bfd logic out of bfd/configure.ac and into bfd64.m4 under config so it can be shared between all the other subdirs. This replaces want64 with enable_64_bit_bfd which was already being declared, but not used directly.
Diffstat (limited to 'opcodes/configure.ac')
-rw-r--r--opcodes/configure.ac3
1 files changed, 2 insertions, 1 deletions
diff --git a/opcodes/configure.ac b/opcodes/configure.ac
index 3e83588..ccf4926 100644
--- a/opcodes/configure.ac
+++ b/opcodes/configure.ac
@@ -93,6 +93,7 @@ AM_PO_SUBDIRS
. ${srcdir}/../bfd/configure.host
BFD_CC_FOR_BUILD
+BFD_64_BIT
AC_SUBST(HDEFINES)
AC_PROG_INSTALL
@@ -380,7 +381,7 @@ if test x${all_targets} = xfalse ; then
else # all_targets is true
archdefs=-DARCH_all
- if grep '#define BFD_ARCH_SIZE 64' ../bfd/bfd-in3.h > /dev/null; then
+ if test "$enable_64_bit_bfd" = "yes" ; then
BFD_MACHINES='$(ALL32_MACHINES) $(ALL64_MACHINES)'
else
BFD_MACHINES='$(ALL32_MACHINES)'