cd $BAU pwd if [ -d m4-1.4.21 ] then rm --force --recursive m4-1.4.21 fi tar --extract -f m4-1.4.21.tar.xz cd m4-1.4.21 pwd ./configure --prefix=/usr \ --host=$LFS_TGT \ --build=$(build-aux/config.guess) make make DESTDIR=$LFS install cd .. pwd
cd $BAU pwd if [ -d ncurses-6.6 ] then rm --force --recursive ncurses-6.6 fi tar --extract -f ncurses-6.6.tar.gz cd ncurses-6.6 pwd mkdir build pushd build ../configure --prefix=$LFS/tools AWK=gawk make -C include make -C progs tic install progs/tic $LFS/tools/bin popd ./configure --prefix=/usr \ --host=$LFS_TGT \ --build=$(./config.guess) \ --mandir=/usr/share/man \ --with-manpage-format=normal \ --with-shared \ --without-normal \ --with-cxx-shared \ --without-debug \ --without-ada \ --disable-stripping \ AWK=gawk make make DESTDIR=$LFS install ln -sv libncursesw.so $LFS/usr/lib/libncurses.so sed -e 's/^#if.*XOPEN.*$/#if 1/' \ -i $LFS/usr/include/curses.h cd .. pwd
cd $BAU pwd if [ -d bash-5.3 ] then rm --force --recursive bash-5.3 fi tar --extract -f bash-5.3.tar.gz cd bash-5.3 pwd ./configure --prefix=/usr \ --build=$(sh support/config.guess) \ --host=$LFS_TGT \ --without-bash-malloc make make DESTDIR=$LFS install ln -sv bash $LFS/bin/sh cd .. pwd
cd $BAU pwd if [ -d coreutils-9.10 ] then rm --force --recursive coreutils-9.10 fi tar --extract -f coreutils-9.10.tar.xz cd coreutils-9.10 pwd ./configure --prefix=/usr \ --host=$LFS_TGT \ --build=$(build-aux/config.guess) \ --enable-install-program=hostname \ --enable-no-install-program=kill,uptime make make DESTDIR=$LFS install mv -v $LFS/usr/bin/chroot $LFS/usr/sbin mkdir -pv $LFS/usr/share/man/man8 mv -v $LFS/usr/share/man/man1/chroot.1 $LFS/usr/share/man/man8/chroot.8 sed -i 's/"1"/"8"/' $LFS/usr/share/man/man8/chroot.8 cd .. pwd
cd $BAU pwd if [ -d diffutils-3.12 ] then rm --force --recursive diffutils-3.12 fi tar --extract -f diffutils-3.12.tar.xz cd diffutils-3.12 pwd ./configure --prefix=/usr \ --host=$LFS_TGT \ gl_cv_func_strcasecmp_works=y \ --build=$(./build-aux/config.guess) make make DESTDIR=$LFS install cd .. pwd
cd $BAU pwd if [ -d file-5.46 ] then rm --force --recursive file-5.46 fi tar --extract -f file-5.46.tar.gz cd file-5.46 pwd mkdir build pushd build ../configure --disable-bzlib \ --disable-libseccomp \ --disable-xzlib \ --disable-zlib make popd ./configure --prefix=/usr --host=$LFS_TGT --build=$(./config.guess) make FILE_COMPILE=$(pwd)/build/src/file make DESTDIR=$LFS install rm -v $LFS/usr/lib/libmagic.la cd .. pwd
cd $BAU pwd if [ -d findutils-4.10.0 ] then rm --force --recursive findutils-4.10.0 fi tar --extract -f findutils-4.10.0.tar.xz cd findutils-4.10.0 pwd ./configure --prefix=/usr \ --localstatedir=/var/lib/locate \ --host=$LFS_TGT \ --build=$(build-aux/config.guess) make make DESTDIR=$LFS install cd .. pwd
cd $BAU pwd if [ -d gawk-5.3.2 ] then rm --force --recursive gawk-5.3.2 fi tar --extract -f gawk-5.3.2.tar.xz cd gawk-5.3.2 pwd sed -i 's/extras//' Makefile.in ./configure --prefix=/usr \ --host=$LFS_TGT \ --build=$(build-aux/config.guess) make make DESTDIR=$LFS install cd .. pwd
cd $BAU pwd if [ -d grep-3.12 ] then rm --force --recursive grep-3.12 fi tar --extract -f grep-3.12.tar.xz cd grep-3.12 pwd ./configure --prefix=/usr \ --host=$LFS_TGT \ --build=$(./build-aux/config.guess) make make DESTDIR=$LFS install cd .. pwd
cd $BAU pwd if [ -d gzip-1.14 ] then rm --force --recursive gzip-1.14 fi tar --extract -f gzip-1.14.tar.xz cd gzip-1.14 pwd ./configure --prefix=/usr --host=$LFS_TGT make make DESTDIR=$LFS install cd .. pwd
cd $BAU pwd if [ -d make-4.4.1 ] then rm --force --recursive make-4.4.1 fi tar --extract -f make-4.4.1.tar.gz cd make-4.4.1 pwd ./configure --prefix=/usr \ --host=$LFS_TGT \ --build=$(build-aux/config.guess) make make DESTDIR=$LFS install cd .. pwd
cd $BAU pwd if [ -d patch-2.8 ] then rm --force --recursive patch-2.8 fi tar --extract -f patch-2.8.tar.xz cd patch-2.8 pwd ./configure --prefix=/usr \ --host=$LFS_TGT \ --build=$(build-aux/config.guess) make make DESTDIR=$LFS install cd .. pwd
cd $BAU pwd if [ -d sed-4.9 ] then rm --force --recursive sed-4.9 fi tar --extract -f sed-4.9.tar.xz cd sed-4.9 pwd ./configure --prefix=/usr \ --host=$LFS_TGT \ --build=$(./build-aux/config.guess) make make DESTDIR=$LFS install cd .. pwd
cd $BAU pwd if [ -d tar-1.35 ] then rm --force --recursive tar-1.35 fi tar --extract -f tar-1.35.tar.xz cd tar-1.35 pwd ./configure --prefix=/usr \ --host=$LFS_TGT \ --build=$(build-aux/config.guess) make make DESTDIR=$LFS install cd .. pwd
cd $BAU pwd if [ -d xz-5.8.2 ] then rm --force --recursive xz-5.8.2 fi tar --extract -f xz-5.8.2.tar.xz cd xz-5.8.2 pwd ./configure --prefix=/usr \ --host=$LFS_TGT \ --build=$(build-aux/config.guess) \ --disable-static \ --docdir=/usr/share/doc/xz-5.8.2 make make DESTDIR=$LFS install rm -v $LFS/usr/lib/liblzma.la cd .. pwd
cd $BAU pwd if [ -d binutils-2.46.0 ] then rm --force --recursive binutils-2.46.0 fi tar --extract -f binutils-2.46.0.tar.xz cd binutils-2.46.0 pwd sed '6031s/$add_dir//' -i ltmain.sh mkdir -v build cd build ../configure \ --prefix=/usr \ --build=$(../config.guess) \ --host=$LFS_TGT \ --disable-nls \ --enable-shared \ --enable-gprofng=no \ --disable-werror \ --enable-64-bit-bfd \ --enable-new-dtags \ --enable-default-hash-style=gnu make make DESTDIR=$LFS install rm -v $LFS/usr/lib/lib{bfd,ctf,ctf-nobfd,opcodes,sframe}.{a,la} cd .. cd .. pwd
cd $BAU pwd if [ -d gcc-15.2.0 ] then rm --force --recursive gcc-15.2.0 fi tar --extract -f gcc-15.2.0.tar.xz cd gcc-15.2.0 pwd tar -xf ../mpfr-4.2.2.tar.xz mv -v mpfr-4.2.2 mpfr tar -xf ../gmp-6.3.0.tar.xz mv -v gmp-6.3.0 gmp tar -xf ../mpc-1.3.1.tar.gz mv -v mpc-1.3.1 mpc case $(uname -m) in x86_64) sed -e '/m64=/s/lib64/lib/' \ -i.orig gcc/config/i386/t-linux64 ;; esac sed '/thread_header =/s/@.*@/gthr-posix.h/' \ -i libgcc/Makefile.in libstdc++-v3/include/Makefile.in mkdir -v build cd build ../configure \ --build=$(../config.guess) \ --host=$LFS_TGT \ --target=$LFS_TGT \ --prefix=/usr \ --with-build-sysroot=$LFS \ --enable-default-pie \ --enable-default-ssp \ --disable-nls \ --disable-multilib \ --disable-libatomic \ --disable-libgomp \ --disable-libquadmath \ --disable-libsanitizer \ --disable-libssp \ --disable-libvtv \ --enable-languages=c,c++ \ LDFLAGS_FOR_TARGET=-L$PWD/$LFS_TGT/libgcc make make DESTDIR=$LFS install ln -sv gcc $LFS/usr/bin/cc cd .. cd .. pwd