Skip to content

Commit

Permalink
x86_64-elf-gdb: declare indirect deps with linkage
Browse files Browse the repository at this point in the history
Signed-off-by: Rui Chen <[email protected]>
  • Loading branch information
chenrui333 committed Jul 28, 2024
1 parent ef5884a commit 5479b19
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Formula/x/x86_64-elf-gdb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,14 @@ class X8664ElfGdb < Formula
end

depends_on "x86_64-elf-gcc" => :test

depends_on "gmp"
depends_on "mpfr"
depends_on "[email protected]"
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
Expand Down Expand Up @@ -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

0 comments on commit 5479b19

Please sign in to comment.