1.21. pass2-binutils-2.38

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


MY_P="${P#pass2-}"
MY_PD="${MY_P}"

Configuration

src_config()
{
    sed '6009s/$add_dir//' -i ltmain.sh

    mkdir -v build
    cd build

    ../configure \
        --prefix=${PREFIX}   \
        --build=$(../config.guess) \
        --host=${LFS_TGT}          \
        --disable-nls              \
        --enable-shared            \
        --disable-werror           \
        --enable-64-bit-bfd
}

Compilation

src_compile()
{
    make ${MAKEOPTS}
}

Installation

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

Links

url.lfs.stage1: https://linuxfromscratch.org/lfs/view/11.1/chapter06/binutils-pass2.html