Skip to content

Commit

Permalink
bu
Browse files Browse the repository at this point in the history
  • Loading branch information
paperchalice committed May 30, 2024
1 parent 4ae789d commit d94fc59
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions Formula/gcc/arm64-apple-darwin-binutils.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
class Arm64AppleDarwinBinutils < Formula
desc "GNU Binutils for apple silicon cross development"
homepage "https://www.gnu.org/software/binutils/"
url "https://ftp.gnu.org/gnu/binutils/binutils-2.42.tar.bz2"
mirror "https://ftpmirror.gnu.org/binutils/binutils-2.42.tar.bz2"
sha256 "aa54850ebda5064c72cd4ec2d9b056c294252991486350d9a97ab2a6dfdfaf12"
license "GPL-3.0-or-later"

livecheck do
formula "binutils"
end

depends_on "pkg-config" => :build
depends_on "zstd"

uses_from_macos "zlib"

def install
target = "arm64-apple-darwin22"
system "./configure", "--target=#{target}",
"--prefix=#{prefix}",
"--libdir=#{lib}/#{target}",
"--with-system-zlib",
"--with-zstd",
"--disable-nls"
system "make"
system "make", "install"
end

test do
system "echo"
end
end

0 comments on commit d94fc59

Please sign in to comment.