Created
February 28, 2012 20:24
-
-
Save darkhelmet/1934886 to your computer and use it in GitHub Desktop.
GDB for Homebrew
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class Gdb < Formula | |
url 'http://ftp.gnu.org/gnu/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment