1.21. pass2-binutils-2.36.1

#!/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()
{
    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}

    install -m755 libctf/.libs/libctf.so.0.0.0 ${D}${PREFIX}/lib
}

Links

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