6.16. Xz-5.2.5

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.

Approximate build time: 0.1 SBU
Required disk space: 15 MB

6.16.1. Installation of Xz

Update helper scripts to allow cross compilation for loongarch:

tar xf ../config-20210826.tar.xz --strip-components=1 -C build-aux

Prepare Xz for compilation:

./configure --prefix=/usr                     \
            --host=$LFS_TGT                   \
            --build=$(build-aux/config.guess) \
            --disable-static                  \
            --docdir=/usr/share/doc/xz-5.2.5

Compile the package:

make

Install the package:

make DESTDIR=$LFS install

Details on this package are located in Section 8.8.2, “Contents of Xz.”