Add 6.2 - Build m4

This commit is contained in:
Aditya 2023-01-09 10:47:03 +05:30
parent 46bdff5fce
commit d61631a9df
2 changed files with 42 additions and 1 deletions

View file

@ -0,0 +1,27 @@
#!/bin/bash
cd $LFS/sources
tar xf m4-1.4.19.tar.xz
cd m4-1.4.19
./configure --prefix=/usr \
--host=$LFS_TGT \
--build=$(build-aux/config.guess)
if [ $? -ne 0 ]
then
exit 1
fi
make -j5
if [ $? -ne 0 ]
then
exit 1
fi
make DESTDIR=$LFS install
cd $LFS/sources
rm -rf m4-1.4.19

View file

@ -131,6 +131,7 @@ fi
# Chapter 5.2
# ===========
echo "Chapter 5"
echo "Building binutils"
su - lfs -c "bash $PWD/chapter5/5.2-binutils.sh"
@ -180,7 +181,7 @@ fi
# Chapter 5.6
# ===========
echo "Building listdc++"
su - lfs -c "$PWD/chapter5/5.6-libstdc++.sh"
su - lfs -c "bash $PWD/chapter5/5.6-libstdc++.sh"
# Exit on error
check_exit_code
@ -189,3 +190,16 @@ then
stop_script "chapter5/5.6-libstdc++.sh"
fi
# Chapter 6.2
# ===========
echo "Chapter 6"
echo "Building m4"
su - lfs -c "bash $PWD/chapter6/6.2-m4.sh"
# Exit on error
check_exit_code
if [ $exit_status -ne 0 ]
then
stop_script "chapter6/6/2-m4.sh"
fi