36 lines
1.4 KiB
Ruby
36 lines
1.4 KiB
Ruby
class Binutils < Formula
|
|
desc "FSF/GNU ld, ar, readelf, etc. for native development"
|
|
homepage "https://www.gnu.org/software/binutils/binutils.html"
|
|
url "https://ftp.gnu.org/gnu/binutils/binutils-2.31.tar.gz"
|
|
mirror "https://ftpmirror.gnu.org/binutils/binutils-2.31.tar.gz"
|
|
sha256 "5a9de9199f22ca7f35eac378f93c45ead636994fc59f3ac08f6b3569f73fcf6f"
|
|
|
|
bottle do
|
|
sha256 "b837e47aa271d10ca2dd8efb736126adb01099c6fbaa59f770db21519ab9bcb9" => :high_sierra
|
|
sha256 "5d622c2ec7ff213c0b72d7662d18a63f1b83c93d4f87d8a961a1314ac0cbb8ec" => :sierra
|
|
sha256 "0e7dff88984a72de63547572ff56df1e236b47ccca919f065d74853913c16042" => :el_capitan
|
|
end
|
|
|
|
# No --default-names option as it interferes with Homebrew builds.
|
|
|
|
def install
|
|
system "./configure", "--disable-debug",
|
|
"--disable-dependency-tracking",
|
|
"--enable-deterministic-archives",
|
|
"--program-prefix=g",
|
|
"--prefix=#{prefix}",
|
|
"--infodir=#{info}",
|
|
"--mandir=#{man}",
|
|
"--disable-werror",
|
|
"--enable-interwork",
|
|
"--enable-multilib",
|
|
"--enable-64-bit-bfd",
|
|
"--enable-targets=all"
|
|
system "make"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
assert_match "main", shell_output("#{bin}/gnm #{bin}/gnm")
|
|
end
|
|
end
|