From 6dd7a823222bb9ce55c12bbd46e10b1f86f44fa4 Mon Sep 17 00:00:00 2001 From: Adrian Ho Date: Wed, 3 Feb 2021 12:57:30 +0800 Subject: [PATCH] gdb: install gdbserver `gdbserver` is actually being built on Linux, but not being installed. (`gdbserver` on macOS is not supported.) `maybe-install-gdbserver` is a cross-platform GDB make target that Does The Right Thing on both macOS and Linux. Addresses https://github.com/Homebrew/discussions/discussions/659 --- Formula/gdb.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Formula/gdb.rb b/Formula/gdb.rb index b28ad2462e760..d0c36a7a7a1ef 100644 --- a/Formula/gdb.rb +++ b/Formula/gdb.rb @@ -5,6 +5,7 @@ class Gdb < Formula mirror "https://ftpmirror.gnu.org/gdb/gdb-10.1.tar.xz" sha256 "f82f1eceeec14a3afa2de8d9b0d3c91d5a3820e23e0a01bbb70ef9f0276b62c0" license "GPL-3.0-or-later" + revision 1 head "https://sourceware.org/git/binutils-gdb.git" livecheck do @@ -56,7 +57,7 @@ def install system "make" # Don't install bfd or opcodes, as they are provided by binutils - system "make", "install-gdb" + system "make", "install-gdb", "maybe-install-gdbserver" end end