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.29.tar.gz"
|
|
mirror "https://ftpmirror.gnu.org/binutils/binutils-2.29.tar.gz"
|
|
sha256 "172e8c89472cf52712fd23a9f14e9bca6182727fb45b0f8f482652a83d5a11b4"
|
|
|
|
bottle do
|
|
sha256 "a86ec8b9b8628f5dd5e237470e0faf5d9e3d3ebbb9fede28d0eb99f4955a44bb" => :sierra
|
|
sha256 "bff7053d7a7730222d80939bfd56cabcb9e97c80e07cfa5adb82d940aa2ace9e" => :el_capitan
|
|
sha256 "f220539e4ad8d0139f8dc302675cb9e8fba139e2272646e65eddb8c106cdde2d" => :yosemite
|
|
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
|