diff --git a/scripts/chapter5/5.2-binutils.sh b/scripts/chapter5/5.2-binutils.sh index 2ea5227..af8bbc4 100644 --- a/scripts/chapter5/5.2-binutils.sh +++ b/scripts/chapter5/5.2-binutils.sh @@ -28,3 +28,5 @@ fi make install +cd $LFS/sources +rm -rf binutils-2.39 diff --git a/scripts/chapter5/5.3-gcc.sh b/scripts/chapter5/5.3-gcc.sh index a3ee992..6bb2194 100644 --- a/scripts/chapter5/5.3-gcc.sh +++ b/scripts/chapter5/5.3-gcc.sh @@ -67,3 +67,7 @@ fi cd .. cat gcc/limitx.h gcc/glimits.h gcc/limity.h > \ `dirname $($LFS_TGT-gcc -print-libgcc-file-name)`/install-tools/include/limits.h + + +cd $LFS/sources +rm -rf gcc-12.2.0 diff --git a/scripts/chapter5/5.4-linux-headers.sh b/scripts/chapter5/5.4-linux-headers.sh index 6e9a901..26fd846 100644 --- a/scripts/chapter5/5.4-linux-headers.sh +++ b/scripts/chapter5/5.4-linux-headers.sh @@ -9,3 +9,7 @@ make mrproper make headers find usr/include -type f ! -name '*.h' -delete cp -rv usr/include $LFS/usr + +cd $LFS/sources +rm -rf linux-5.19.2 + diff --git a/scripts/chapter5/5.5-glibc.sh b/scripts/chapter5/5.5-glibc.sh index 47a1526..29342b5 100644 --- a/scripts/chapter5/5.5-glibc.sh +++ b/scripts/chapter5/5.5-glibc.sh @@ -43,3 +43,5 @@ sed '/RTLDLIST=/s@/usr@@g' -i $LFS/usr/bin/ldd $LFS/tools/libexec/gcc/$LFS_TGT/12.2.0/install-tools/mkheaders +cd $LFS/sources +rm -rf glibc-2.36