diff options
author | Alan Modra <amodra@gmail.com> | 2021-11-12 18:55:45 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2021-11-12 19:02:12 +1030 |
commit | 0b32f05baccc6e1ab7f74a55254c5db86e22522b (patch) | |
tree | ea261edea58457c3dab7a8a1ef0f1bd5211cbb28 /opcodes/configure | |
parent | be472decb251e0a27edf4575e054cce107956d26 (diff) | |
download | gdb-0b32f05baccc6e1ab7f74a55254c5db86e22522b.zip gdb-0b32f05baccc6e1ab7f74a55254c5db86e22522b.tar.gz gdb-0b32f05baccc6e1ab7f74a55254c5db86e22522b.tar.bz2 |
Don't compile some opcodes files when bfd is 32-bit only
* Makefile.am (TARGET_LIBOPCODES_CFILES): Split into..
(TARGET64_LIBOPCODES_CFILES): ..this and..
(TARGET32_LIBOPCODES_CFILES): ..this.
(ALL_MACHINES): Likewise split to
(ALL64_MACHINES, ALL32_MACHINES): ..this.
* disassemble.c: Define some ARCH_* when ARCH_all only if BFD64.
* configure.ac (BFD_MACHINES): Defined depending on BFD_ARCH_SIZE.
* Makefile.in: Regenerate.
* configure: Regenerate.
Diffstat (limited to 'opcodes/configure')
-rwxr-xr-x | opcodes/configure | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/opcodes/configure b/opcodes/configure index acfbdd6..6672c36 100755 --- a/opcodes/configure +++ b/opcodes/configure @@ -12319,7 +12319,11 @@ if test x${all_targets} = xfalse ; then else # all_targets is true archdefs=-DARCH_all - BFD_MACHINES='$(ALL_MACHINES)' + if grep '#define BFD_ARCH_SIZE 64' ../bfd/bfd-in3.h > /dev/null; then + BFD_MACHINES='$(ALL32_MACHINES) $(ALL64_MACHINES)' + else + BFD_MACHINES='$(ALL32_MACHINES)' + fi fi |