Make all-gdbsupport depend on all-bfd
authorSimon Marchi <simon.marchi@efficios.com>
Fri, 17 Jan 2020 18:40:10 +0000 (13:40 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Fri, 17 Jan 2020 18:40:21 +0000 (13:40 -0500)
Trying to run "make all-gdbsupport" at the top-level in a build from scratch
results in:

make[2]: Entering directory '/home/smarchi/build/binutils-gdb/gdbsupport'
  CC       agent.o
In file included from /home/smarchi/src/binutils-gdb/gdbsupport/common-defs.h:133,
                 from /home/smarchi/src/binutils-gdb/gdbsupport/agent.c:20:
/home/smarchi/src/binutils-gdb/gdbsupport/common-types.h:35:10: fatal error: bfd.h: No such file or directory
   35 | #include "bfd.h"
      |          ^~~~~~~

Before building all-gdbsupport, we need all-bfd to run, so that bfd.h is
generated.

(Once this patch is merged in the binutils-gdb repo, I'll send it to gcc
to keep the files in sync.)

ChangeLog:

* Makefile.def: Add dependencies of all-gdbsupport on all-bfd.
* Makefile.in: Re-generate.

ChangeLog
Makefile.def
Makefile.in

index ebf349362843057a05fc2b1dd79cf896d5ebdc2f..f97f9623e9d2924a0b42f4ed626e660a09db77ec 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2020-01-17  Simon Marchi  <simon.marchi@efficios.com>
+
+       * Makefile.def: Add dependencies of all-gdbsupport on all-bfd.
+       * Makefile.in: Re-generate.
+
 2020-01-14  Tom Tromey  <tom@tromey.com>
 
        * src-release.sh (GDB_SUPPORT_DIRS): Add gdbsupport.
index 079fd3e4f16fef5af37ac99015f61e5ba206907f..253eb45ef1415beedafaf8089986109750f858ed 100644 (file)
@@ -417,6 +417,7 @@ dependencies = { module=all-libgui; on=all-itcl; };
 
 dependencies = { module=configure-gdbsupport; on=configure-bfd; };
 dependencies = { module=configure-gdbsupport; on=configure-gnulib; };
+dependencies = { module=all-gdbsupport; on=all-bfd; };
 dependencies = { module=all-gdbsupport; on=all-gnulib; };
 
 // Host modules specific to binutils.
index 3f6938a771ce596aaf60966f4168eaa21a283d48..af38671cbeab3861d8e1e8730cc16ff95c0bbce3 100644 (file)
@@ -51991,6 +51991,7 @@ all-gdb: maybe-all-opcodes
 all-gdb: maybe-all-libdecnumber
 all-gdb: maybe-all-libctf
 configure-gdbsupport: maybe-configure-bfd
+all-gdbsupport: maybe-all-bfd
 configure-gprof: maybe-configure-intl
 all-gprof: maybe-all-libiberty
 all-gprof: maybe-all-bfd
This page took 0.04249 seconds and 4 git commands to generate.