Estimated build time: 0.07 SBU Estimated required disk space: 6 MB |
Last checked against version 1.0.2
Bzip2 is a block-sorting file compressor which generally achieves a better compression than the traditional gzip does.
Bzip2 installs the following files:
bunzip2 (link to bzip2), bzcat (link to bzip2), bzcmp, bzdiff, bzegrep, bzfgrep, bzgrep, bzip2, bzip2recover, bzless and bzmore
libbz2.a, libbz2.so (link to libbz2.so.1.0), libbz2.so.1.0 (link to libbz2.so.1.0.2) and libbz2.so.1.0.2
Last checked against version 1.0.1.
Bash: sh
Binutils: ar, as, ld, ranlib
Fileutils: cp, ln, rm
Gcc: cc1, collect2, cpp0, gcc
Make: make
Since the Bzip2 package has no configure script we can't prepare it for compilation. Instead we just run the make program and start compiling, with a few variables changed to suit our environment:
make CC="gcc -static -s" |
The meaning of the make option is:
CC="gcc -static -s": The Bzip2 package does not honour the LDFLAGS variable, so instead we set the CC variable which defines which compiler to use. The -static option tells the compiler to link all programs statically.
And finish off installing the package:
make PREFIX=$LFS/static install |
The meaning of the make option is:
PREFIX=$LFS/static: Instead of passing a --prefix=$LFS/static to a configure script, we set the PREFIX variable to accomplish the same goal (since there is no configure script present).