i386-elf-gdb 8.2 (new formula)
Closes #34288. Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
parent
39e2657e35
commit
7e55be78d6
1 changed files with 20 additions and 0 deletions
20
Formula/i386-elf-gdb.rb
Normal file
20
Formula/i386-elf-gdb.rb
Normal file
|
@ -0,0 +1,20 @@
|
|||
class I386ElfGdb < Formula
|
||||
desc "GNU debugger for i386-elf cross development"
|
||||
homepage "https://www.gnu.org/software/gdb/"
|
||||
url "https://ftp.gnu.org/gnu/gdb/gdb-8.2.tar.xz"
|
||||
sha256 "c3a441a29c7c89720b734e5a9c6289c0a06be7e0c76ef538f7bbcef389347c39"
|
||||
|
||||
def install
|
||||
mkdir "build" do
|
||||
system "../configure", "--target=i386-elf",
|
||||
"--prefix=#{prefix}",
|
||||
"--disable-werror"
|
||||
system "make"
|
||||
system "make", "install"
|
||||
end
|
||||
end
|
||||
|
||||
test do
|
||||
system "#{bin}/i386-elf-gdb", "#{bin}/i386-elf-gdb", "-configuration"
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue