forked from Homebrew/homebrew-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbinutils.rb
35 lines (31 loc) · 1.36 KB
/
binutils.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
class Binutils < Formula
desc "FSF Binutils for native development"
homepage "https://www.gnu.org/software/binutils/binutils.html"
url "https://ftpmirror.gnu.org/binutils/binutils-2.26.1.tar.gz"
mirror "https://ftp.gnu.org/gnu/binutils/binutils-2.26.1.tar.gz"
sha256 "dd9c3e37c266e4fefba68e444e2a00538b3c902dd31bf4912d90dca6d830a2a1"
bottle do
sha256 "61d1a4e3bdc1846267c984b478e3a5a822a8a14a1169153670a9a61402ab1d40" => :el_capitan
sha256 "daeccb1d2c5c4b324aa5ea38c6813ead25d9bfea8a84e093cc96687fa152b3e0" => :yosemite
sha256 "f2ae1527a595586195d773323a661135ce5a8eb96ec171ef5c387d1da5592d80" => :mavericks
end
# No --default-names option as it interferes with Homebrew builds.
def install
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--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