6.7. Bzip2-1.0.3

#### Cross-Compiled Linux From Scratch - Version 1.0.0rc2-MIPS

### Chapter 6. Constructing a Temporary System

- Prev

  Bash-3.1

- Next

  Coreutils-5.96

- Up.
- Home

# 6.7. Bzip2-1.0.3

The Bzip2 package contains programs for compressing and decompressing files. Compressing text files with bzip2 yields a much better compression percentage than with the traditional gzip.

## 6.7.1. Installation of Bzip2

Bzip's default Makefile target automatically runs the testsuite as well. Disable the tests since they won't work on a multi-architecture build:

    cp -v Makefile{,.orig}
    sed -e 's@^\(all:.*\) test@\1@g' Makefile.orig > Makefile

The Bzip2 package does not contain a configure script. Compile it with:

    make CC="${CC}" AR="${AR}" RANLIB="${RANLIB}"

Install the package:

    make PREFIX=/tools install

Details on this package are located in Section 10.24.2, “Contents of Bzip2.”

- Prev

  Bash-3.1

- Next

  Coreutils-5.96

- Up.
- Home.