38 lines
1.4 KiB
Ruby
38 lines
1.4 KiB
Ruby
class ArmLinuxGnueabihfBinutils < Formula
|
|
desc "FSF/GNU binutils for cross-compiling to arm-linux"
|
|
homepage "https://www.gnu.org/software/binutils/binutils.html"
|
|
url "https://ftp.gnu.org/gnu/binutils/binutils-2.34.tar.gz"
|
|
mirror "https://ftpmirror.gnu.org/binutils/binutils-2.34.tar.gz"
|
|
sha256 "53537d334820be13eeb8acb326d01c7c81418772d626715c7ae927a7d401cab3"
|
|
license "GPL-2.0"
|
|
|
|
bottle do
|
|
sha256 "207a781d7d5cd45c18138b48c9187ba4315ef78f17d47aec5cf5438841920d6c" => :catalina
|
|
sha256 "347965a02495f6a03b2b3cd35c969c125e58b7cb0a81f7db64cb0ae296471281" => :mojave
|
|
sha256 "247a0b582523ad5a3af119b223ef17a04ed4cdcf37cee118d3a0971944f63e17" => :high_sierra
|
|
end
|
|
|
|
def install
|
|
ENV.cxx11
|
|
|
|
# Avoid build failure: https://sourceware.org/bugzilla/show_bug.cgi?id=23424
|
|
ENV.append "CXXFLAGS", "-Wno-c++11-narrowing"
|
|
|
|
system "./configure", "--disable-debug",
|
|
"--disable-dependency-tracking",
|
|
"--enable-deterministic-archives",
|
|
"--prefix=#{prefix}",
|
|
"--disable-werror",
|
|
"--target=arm-linux-gnueabihf",
|
|
"--enable-gold=yes",
|
|
"--enable-ld=yes",
|
|
"--enable-interwork"
|
|
system "make"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
assert_match "f()", shell_output("#{bin}/arm-linux-gnueabihf-c++filt _Z1fv")
|
|
end
|
|
end
|