Details on this package are located in Section 8.8.2, “Contents of Xz.”
The Xz package contains programs for compressing and decompressing files. It provides capabilities for the lzma and the newer xz compression formats. Compressing text files with xz yields a better compression percentage than with the traditional gzip or bzip2 commands.
Prepare Xz for compilation:
./configure --prefix=/usr \ --host=$LFS_TGT \ --build=$(build-aux/config.guess) \ --disable-static \ FILECMD=file \ --docdir=/usr/share/doc/xz-5.6.2
The meaning of the new configure options:
ac_cv_prog_FILECMD=file
Works around an issue in the shipped libtool copy causing the
configure script fail to find the file command of the host
distro. The issue is harmless for most architectures, but it
can make --disable-static
ineffective
for MIPS.
Compile the package:
make
Install the package:
make DESTDIR=$LFS install
Remove the libtool archive file because it is harmful for cross compilation:
rm -v $LFS/usr/lib/liblzma.la
Details on this package are located in Section 8.8.2, “Contents of Xz.”