diff --git a/Formula/x/x86_64-elf-gdb.rb b/Formula/x/x86_64-elf-gdb.rb index e4e5f2f5b11a2..46292d19882de 100644 --- a/Formula/x/x86_64-elf-gdb.rb +++ b/Formula/x/x86_64-elf-gdb.rb @@ -22,11 +22,14 @@ class X8664ElfGdb < Formula end depends_on "x86_64-elf-gcc" => :test + depends_on "gmp" depends_on "mpfr" depends_on "python@3.12" depends_on "xz" # required for lzma support + uses_from_macos "expat" + uses_from_macos "ncurses" uses_from_macos "zlib" on_system :linux, macos: :ventura_or_newer do @@ -60,7 +63,8 @@ def install test do (testpath/"test.c").write "void _start(void) {}" system "#{Formula["x86_64-elf-gcc"].bin}/x86_64-elf-gcc", "-g", "-nostdlib", "test.c" - assert_match "Symbol \"_start\" is a function at address 0x", - shell_output("#{bin}/x86_64-elf-gdb -batch -ex 'info address _start' a.out") + + output = shell_output("#{bin}/x86_64-elf-gdb -batch -ex 'info address _start' a.out") + assert_match "Symbol \"_start\" is a function at address 0x", output end end