Skip to content

Instantly share code, notes, and snippets.

@hirofumi
Created February 7, 2012 16:50
Show Gist options
  • Save hirofumi/1760699 to your computer and use it in GitHub Desktop.
Save hirofumi/1760699 to your computer and use it in GitHub Desktop.
Homebrew Formula of GDB 7.4
require 'formula'
class Gdb < Formula
url 'http://ftpmirror.gnu.org/gdb/gdb-7.4.tar.bz2'
homepage 'http://www.gnu.org/software/gdb/'
md5 '95a9a8305fed4d30a30a6dc28ff9d060'
def install
args = ["--prefix=#{prefix}",
"--disable-debug",
"--disable-dependency-tracking",
"--with-python=/usr"]
system "./configure", *args
system "make"
system "make install"
end
def caveats; <<-EOS.undent
gdb requires special privileges to access Mach ports.
You will need to codesign the binary. For instructions, see:
http://sourceware.org/gdb/wiki/BuildingOnDarwin
EOS
end
end
@hirofumi
Copy link
Author

hirofumi commented Feb 7, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment