diff options
author | Dimitar Dimitrov <dimitar@dinux.eu> | 2021-04-05 19:21:35 +0300 |
---|---|---|
committer | Dimitar Dimitrov <dimitar@dinux.eu> | 2021-05-07 21:02:34 +0300 |
commit | 0d315c88a77a811fdfad0b9fdaa4d8b337cc0a39 (patch) | |
tree | eb1bc4c0793401df3ca98c6cb3bee3fe9b5e1f31 /sim/testsuite | |
parent | 476654beaead1ac1b4322c01722ace865e4adee4 (diff) | |
download | gdb-0d315c88a77a811fdfad0b9fdaa4d8b337cc0a39.zip gdb-0d315c88a77a811fdfad0b9fdaa4d8b337cc0a39.tar.gz gdb-0d315c88a77a811fdfad0b9fdaa4d8b337cc0a39.tar.bz2 |
sim: Add bfd include path for common testsuite tools
On a host without installed libbfd, this patch fixes the following
"make check-sim" errors for both pru cross target, and native x86_64:
In file included from ../../../binutils/sim/common/sim-basics.h:131,
from testsuite/common/bits32m0.c:13:../../../binutils/sim/../include/gdb/callback.h:55:10: fatal error: bfd.h: No such file or directory
55 | #include "bfd.h"
| ^~~~~~~
Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu>
Diffstat (limited to 'sim/testsuite')
-rw-r--r-- | sim/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | sim/testsuite/common/local.mk | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/sim/testsuite/ChangeLog b/sim/testsuite/ChangeLog index 8b03c1d..4234747 100644 --- a/sim/testsuite/ChangeLog +++ b/sim/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2021-05-07 Dimitar Dimitrov <dimitar@dinux.eu> + + * local.mk (%C%_CPPFLAGS): Add ../bfd include path. + 2021-04-08 Mike Frysinger <vapier@gentoo.org> * lib/sim-defs.exp (run_sim_test): Set status to unsupported if diff --git a/sim/testsuite/common/local.mk b/sim/testsuite/common/local.mk index 38ffb0b..4db7981 100644 --- a/sim/testsuite/common/local.mk +++ b/sim/testsuite/common/local.mk @@ -29,7 +29,8 @@ check_PROGRAMS += $(TESTS) %C%_CPPFLAGS = \ -I$(srcdir)/common \ - -I$(srcroot)/include + -I$(srcroot)/include \ + -I../bfd # These tests are build-time only tools. Override the default rules for them. %D%/%.o: %D%/%.c |