mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-11-13 00:39:46 +00:00
31 lines
472 B
Bash
31 lines
472 B
Bash
#!/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
|
|
|