Skip to content

Commit

Permalink
x86_64-elf-gcc: 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 d4e4a2d commit ef5884a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Formula/x/x86_64-elf-gcc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class X8664ElfGcc < Formula
depends_on "libmpc"
depends_on "mpfr"
depends_on "x86_64-elf-binutils"
depends_on "zstd"

def install
target = "x86_64-elf"
Expand Down Expand Up @@ -56,8 +57,9 @@ def install
return i;
}
EOS
system "#{bin}/x86_64-elf-gcc", "-c", "-o", "test-c.o", "test-c.c"
assert_match "file format elf64-x86-64",
shell_output("#{Formula["x86_64-elf-binutils"].bin}/x86_64-elf-objdump -a test-c.o")

system bin/"x86_64-elf-gcc", "-c", "-o", "test-c.o", "test-c.c"
output = shell_output("#{Formula["x86_64-elf-binutils"].bin}/x86_64-elf-objdump -a test-c.o")
assert_match "file format elf64-x86-64", output
end
end

0 comments on commit ef5884a

Please sign in to comment.