#!/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}"
src_config()
{
mkdir -v build
cd build
../configure \
--prefix=${LFS}/${PASS1PREFIX} \
--with-sysroot=${LFS} \
--target=${LFS_TGT} \
--disable-nls \
--disable-werror
}
src_compile()
{
make ${MAKEOPTS}
}
src_install()
{
make install ${MAKEOPTS} DESTDIR=${D}
}
- url.lfs.stage1: https://linuxfromscratch.org/lfs/view/10.0/chapter05/binutils-pass1.html