]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/Makefile.in
Fix creation of nm.h when configure is changed
authorTom Tromey <tom@tromey.com>
Sat, 19 Oct 2019 21:42:34 +0000 (15:42 -0600)
committerTom Tromey <tom@tromey.com>
Mon, 21 Oct 2019 13:45:30 +0000 (07:45 -0600)
commita0a461e5b45f6fd9eb81774ad61e55b4917d4305
tree6d563aa9b1cfc93576519b685f05a5f751ecfa45
parent94cb3754118669d46c8ad87c986d8d9c59fac65a
Fix creation of nm.h when configure is changed

My earlier patch -- commit c5adaa192 ("Fix creation of stamp-h by
gdb's configure script") -- broke the creation of nm.h.  In
particular, configure removes nm.h, so if you touch configure and
rebuild, nothing will re-create the link, breaking the build.

This patch fixes the bug, and also updates configure.ac to use
AC_CONFIG_LINKS, rather than the obsolete AC_LINK_FILES.

Finally, I noticed that gcore is in generated_files in the
Makefile.in.  I think this is incorrect, as generated_files is only
needed for files that can be the target of a #include.  So, this patch
removes it.

gdb/ChangeLog
2019-10-21  Tom Tromey  <tom@tromey.com>

* configure.ac (nm.h): Conditionally create nm.h link.  Subst
NM_H.   Use AC_CONFIG_LINKS.
* configure: Rebuild.
* Makefile.in (NM_H): New variable.
(generated_files): Add NM_H.  Remove gcore.
(nm.h, stamp-nmh): New targets.

Change-Id: I8dd539785d52455e85389425e4bb996c8a127a0e
gdb/ChangeLog
gdb/Makefile.in
gdb/configure
gdb/configure.ac