2.13. binutils-2.34

The correct work of PTYs is provided by any/bin/enter script, launched before using the container.

#!/bin/sh
# Copyright © 1999-2020 Gerard Beekmans
# Copyright © 2017-2020 Random Crew
# Distributed under the terms of MIT License.

Configuration

src_config()
{
    sed -i '/@\tincremental_copy/d' gold/testsuite/Makefile.in

    mkdir build
    cd build

    ../configure                   \
        --prefix=${PREFIX}         \
        --enable-gold              \
        --enable-ld=default        \
        --enable-plugins           \
        --enable-shared            \
        --disable-werror           \
        --enable-64-bit-bfd        \
        --with-system-zlib
}

Compilation

src_compile()
{
    make ${MAKEOPTS} tooldir=${PREFIX}
}

Installation

src_install()
{
    make install ${MAKEOPTS} tooldir=${PREFIX} DESTDIR=$D
}

Unit testing

src_check()
{
    cd ${S}/build
    make -k check || nonfail
}

Build code

binutils.build

Other files

meta.txt
text

Links

url.lfs: https://linuxfromscratch.org/lfs/view/9.1/chapter06/binutils.html