#!/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}"
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
}
src_compile()
{
make ${MAKEOPTS}
}
src_install()
{
make install ${MAKEOPTS} DESTDIR=${D}
install -m755 libctf/.libs/libctf.so.0.0.0 ${D}${PREFIX}/lib
}
- url.lfs.stage1: https://linuxfromscratch.org/lfs/view/11.0/chapter06/binutils-pass2.html