1.6. pass2-binutils-2.34
#!/bin/sh # Copyright © 1999-2020 Gerard Beekmans # Copyright © 2017-2020 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 CC=${LFS_TGT}-gcc \ AR=${LFS_TGT}-ar \ RANLIB=${LFS_TGT}-ranlib \ ../configure \ --prefix=${PREFIX} \ --disable-nls \ --disable-werror \ --with-lib-path=${PREFIX}/lib \ --with-sysroot }
Compilation
src_compile() { make ${MAKEOPTS} }
Installation
src_install() { make install ${MAKEOPTS} DESTDIR=$D make -C ld clean make -C ld LIB_PATH=/usr/lib:/lib cp ld/ld-new ${D}/${PREFIX}/bin }
Links