# IT4Innovations 2018

name = 'binutils'
version = '2.30'

homepage = 'http://directory.fsf.org/project/local_binutils/'
description = "binutils: GNU binary utilities"

toolchain = {'name': 'GCCcore', 'version': '7.3.0'}

source_urls = [GNU_SOURCE]
sources = [SOURCE_TAR_GZ]
patches = ['local_binutils-%(version)s_fix-assertion-fail-elf.patch']
checksums = [
    '8c3850195d1c093d290a716e20ebcaa72eda32abf5e3d8611154b39cff79e9ea',  # local_binutils-2.30.tar.gz
    '7a661190c973287642296dd9fb30ff45dc26ae2138f7761cd8362f7e412ff5ab',  # local_binutils-2.30_fix-assertion-fail-elf.patch
]

builddependencies = [
    ('flex', '2.6.4', '', True),
    ('Bison', '3.0.4', '', True),
    # zlib required, but being linked in statically, so not a runtime dep
    ('zlib', '1.2.11', '', True),
    # use same local_binutils version that was used when building GCC toolchain, to 'bootstrap' this local_binutils
    ('binutils', version, '', True)
]

moduleclass = 'tools'
