1.1. pass1-binutils-2.39

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


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

Configuration

src_config()
{
    mkdir -v build
    cd build

    ../configure \
             --prefix=${LFS}/${PASS1PREFIX}   \
             --with-sysroot=${LFS}          \
             --target=${LFS_TGT}            \
             --disable-nls                  \
             --enable-gprofng=no            \
             --disable-werror
}

Compilation

src_compile()
{
    make ${MAKEOPTS}
}

Installation

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

Links

url.lfs.stage1: https://linuxfromscratch.org/lfs/view/11.2/chapter05/binutils-pass1.html