Skip to content

Instantly share code, notes, and snippets.

@xiw
Created December 24, 2015 06:42
Show Gist options
  • Save xiw/afc78d4e80e2bfc6b98c to your computer and use it in GitHub Desktop.
Save xiw/afc78d4e80e2bfc6b98c to your computer and use it in GitHub Desktop.
class X8664UnknownLinuxGnuBinutils < Formula
desc "FSF Binutils for x86_64-unknown-linux-gnu development"
homepage "https://www.gnu.org/software/binutils/binutils.html"
url "http://ftpmirror.gnu.org/binutils/binutils-2.25.1.tar.gz"
mirror "https://ftp.gnu.org/gnu/binutils/binutils-2.25.1.tar.gz"
sha256 "82a40a37b13a12facb36ac7e87846475a1d80f2e63467b1b8d63ec8b6a2b63fc"
def install
args = [
"--prefix=#{prefix}",
"--disable-werror",
"--disable-nls",
"--target=x86_64-unknown-linux-gnu"
]
system "./configure", *args
system "make"
system "make", "install"
info.rmtree
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment