mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-11-22 03:52:52 +00:00
Add 6.2 - Build m4
This commit is contained in:
parent
46bdff5fce
commit
d61631a9df
2 changed files with 42 additions and 1 deletions
27
scripts/chapter6/6.2-m4.sh
Normal file
27
scripts/chapter6/6.2-m4.sh
Normal 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
|
||||
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue