mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-11-22 03:52:52 +00:00
Add 6.16 - Build xz
This commit is contained in:
parent
ad4fa0892c
commit
60d82c80a6
2 changed files with 44 additions and 0 deletions
31
scripts/chapter6/6.16-xz.sh
Normal file
31
scripts/chapter6/6.16-xz.sh
Normal file
|
@ -0,0 +1,31 @@
|
|||
#!/bin/bash
|
||||
|
||||
cd $LFS/sources
|
||||
tar xf xz-5.2.6.tar.xz
|
||||
cd xz-5.2.6
|
||||
|
||||
./configure --prefix=/usr \
|
||||
--host=$LFS_TGT \
|
||||
--build=$(build-aux/config.guess) \
|
||||
--disable-static \
|
||||
--docdir=/usr/share/doc/xz-5.2.6
|
||||
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
make -j5
|
||||
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
make DESTDIR=$LFS install
|
||||
|
||||
rm -v $LFS/usr/lib/liblzma.la
|
||||
|
||||
cd $LFS/sources
|
||||
rm -rf xz-5.2.6
|
||||
|
|
@ -359,3 +359,16 @@ then
|
|||
stop_script "chapter6/6.15-tar.sh"
|
||||
fi
|
||||
|
||||
# Chapter 6.16
|
||||
# ============
|
||||
echo "Building xz"
|
||||
su - lfs -c "bash $PWD/chapter6/6.16-xz.sh"
|
||||
|
||||
# Exit on error
|
||||
check_exit_code
|
||||
if [ $exit_status -ne 0 ]
|
||||
then
|
||||
stop_script "chapter6/6.16-xz.sh"
|
||||
fi
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue