1.1. pass1-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#pass1-}" MY_PD="${MY_P}"
Configuration
The code below from original LFS is not used:
case $(uname -m) in x86_64) mkdir -v /tools/lib && ln -sv lib /tools/lib64 ;; esac
We do not create files or links in filesystem directly. To merge lib and lib64 directories, special code is used after build of each package. It is located in lfs/lib/lfs.sh in function lfs_install_pass1.
Option --with-sysroot is used without argument, replacing original --with-sysroot=$LFS.
src_config() { mkdir -v build cd build ../configure \ --prefix=${PREFIX} \ --with-sysroot \ --with-lib-path=${PREFIX}/lib \ --target=${LFS_TGT} \ --disable-nls \ --disable-werror }
Compilation
src_compile() { make ${MAKEOPTS} }
Installation
src_install() { make install ${MAKEOPTS} DESTDIR=$D }
Links