Commit 15cd931a authored by lovedheart's avatar lovedheart Committed by Ed Reel

[binutils] recompile packages (#2242)

enable shared library and some enhancement.
parent 5647bc6c
...@@ -3,32 +3,44 @@ require 'package' ...@@ -3,32 +3,44 @@ require 'package'
class Binutils < Package class Binutils < Package
description 'The GNU Binutils are a collection of binary tools.' description 'The GNU Binutils are a collection of binary tools.'
homepage 'http://www.gnu.org/software/binutils/' homepage 'http://www.gnu.org/software/binutils/'
version '2.30' version '2.30-0'
source_url 'https://ftpmirror.gnu.org/binutils/binutils-2.30.tar.xz' source_url 'https://ftpmirror.gnu.org/binutils/binutils-2.30.tar.xz'
source_sha256 '6e46b8aeae2f727a36f0bd9505e405768a72218f1796f0d09757d45209871ae6' source_sha256 '6e46b8aeae2f727a36f0bd9505e405768a72218f1796f0d09757d45209871ae6'
binary_url ({ binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/binutils-2.30-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/binutils-2.30-0-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/binutils-2.30-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/binutils-2.30-0-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/binutils-2.30-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/binutils-2.30-0-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/binutils-2.30-chromeos-x86_64.tar.xz', x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/binutils-2.30-0-chromeos-x86_64.tar.xz',
}) })
binary_sha256 ({ binary_sha256 ({
aarch64: 'cf68c98c124da6a4c562a9e65a4b34affbcb48e522c3547d44f8adcaa175be8b', aarch64: '4cc7528d1c7f6d5cf6e0cd713a14318272ca1354da9f400571b16a96a889a0eb',
armv7l: 'cf68c98c124da6a4c562a9e65a4b34affbcb48e522c3547d44f8adcaa175be8b', armv7l: '4cc7528d1c7f6d5cf6e0cd713a14318272ca1354da9f400571b16a96a889a0eb',
i686: '6798d0bc77d69db1e8a43b0dac0e0c5f76fa42b0108fe4ad93ac09d48d601ab1', i686: 'cdd19802623b3184f53604813fbf207ca3f758b354cc26378412a9e452c133a2',
x86_64: '9ebfc96ab4e762b7c7804cdd282adcce3077dc5fd0b020a2f6337d12f012b934', x86_64: 'c36989b8e1c84ff546bbb6d24d8022438e1f5ed17ea1dbe2a65d90ec1356c260',
}) })
def self.build def self.build
system './configure', system "mkdir -vp build"
"--prefix=#{CREW_PREFIX}", Dir.chdir("build") do
"--libdir=#{CREW_LIB_PREFIX}", system "../configure",
'--disable-maintainer-mode' "--prefix=#{CREW_PREFIX}",
system 'make' "--libdir=#{CREW_LIB_PREFIX}",
"--enable-shared",
"--disable-maintainer-mode",
"--enable-gold",
"--enable-ld=default",
"--enable-plugins",
"--disable-bootstrap",
"--enable-64-bit-bfd",
"--disable-werror"
system 'make'
end
end end
def self.install def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" Dir.chdir("build") do
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment