Created
February 7, 2012 16:50
-
-
Save hirofumi/1760699 to your computer and use it in GitHub Desktop.
Homebrew Formula of GDB 7.4
This file contains hidden or 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://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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Don't forget to sign:
http://sourceware.org/gdb/wiki/BuildingOnDarwin