Commit 6379377f authored by satmandu's avatar satmandu Committed by GitHub

use lto, keep iconv.h (#5093)

parent f70d8339
......@@ -3,32 +3,39 @@ require 'package'
class Libiconv < Package
description 'GNU charset conversion library for libc which does not implement it.'
homepage 'https://www.gnu.org/software/libiconv/'
version '1.16-3'
version '1.16-4'
compatibility 'all'
source_url 'https://ftpmirror.gnu.org/libiconv/libiconv-1.16.tar.gz'
source_sha256 'e6a1b1b589654277ee790cce3734f07876ac4ccfaecbee8afa0b649cf529cc04'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libiconv-1.16-3-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libiconv-1.16-3-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/libiconv-1.16-3-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libiconv-1.16-3-chromeos-x86_64.tar.xz',
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/libiconv-1.16-4-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/libiconv-1.16-4-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/libiconv-1.16-4-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/libiconv-1.16-4-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: '653edc555a8a094bcee3bbd3ee8b4a88200c4f4e285df132bdaff4e3af6088cb',
armv7l: '653edc555a8a094bcee3bbd3ee8b4a88200c4f4e285df132bdaff4e3af6088cb',
i686: '2000fe80a1a2c85c117c0375a8826a3e0a9c7cb5353398847d5e04154c989f19',
x86_64: '52e602f63df955c451b36ff0b204331ed5c336d384f6484b2f7d5ef7a43f2a6d',
aarch64: '856c11ac045ce6c053e13e9bf1e1b4342a3426c32213a3d3337a214fa6cf86c0',
armv7l: '856c11ac045ce6c053e13e9bf1e1b4342a3426c32213a3d3337a214fa6cf86c0',
i686: '0929057c23923347d7090a6d9852bc1c1c99f3124bd5a30fcc6ac8b440f2bc36',
x86_64: '6c390d85b7570fa2dd97c3d33ace2f28ee55677f5b6f2513f05220b50eb55570',
})
def self.build
system "./configure #{CREW_OPTIONS} --enable-static --enable-relocatable --enable-extra-encodings"
system "env CFLAGS='-flto=auto -ltinfo' CXXFLAGS='-flto=auto' \
LDFLAGS='-flto=auto' \
./configure #{CREW_OPTIONS} \
--enable-static \
--enable-relocatable \
--enable-extra-encodings"
system 'make'
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
# Don't remove iconv.h. Better not to have this installed if you don't
# want a comflict.
# Remove iconv.h which conflicts with same file from glibc
FileUtils.rm "#{CREW_DEST_PREFIX}/include/iconv.h"
# FileUtils.rm "#{CREW_DEST_PREFIX}/include/iconv.h"
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