Add --enable-codesign to gdb's configure
authorTom Tromey <tom@tromey.com>
Thu, 28 Jun 2018 16:32:13 +0000 (10:32 -0600)
committerTom Tromey <tom@tromey.com>
Thu, 28 Jun 2018 21:13:43 +0000 (15:13 -0600)
commit44cee4fdf46a13b63d90ed706c815d9c81e972e3
tree6f4c3c482d7ab94560e0e3a2d5b3bd9b1b7e5123
parentf2ffa92bbce9dd5fbedc138ac2a3bc8a88327d09
Add --enable-codesign to gdb's configure

macOS requires that the gdb executable be signed in order to be able
to successfully use ptrace.  This must be done after each link.

This patch adds a new --enable-codesign configure option so that this
step can be automated.

gdb/ChangeLog
2018-06-28  Tom Tromey  <tom@tromey.com>

* NEWS: Mention --enable-codesign.
* silent-rules.mk (ECHO_SIGN): New variable.
* configure.ac: Add --enable-codesign.
* configure: Rebuild.
* Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
(gdb$(EXEEXT)): Optionally invoke codesign.
gdb/ChangeLog
gdb/Makefile.in
gdb/NEWS
gdb/configure
gdb/configure.ac
gdb/silent-rules.mk