5.8. Installing Diffutils-2.8.1

Estimated build time:           0.39 SBU
Estimated required disk space:  10 MB

5.8.1. Installation of Diffutils

Install Diffutils by running the following commands:

LDFLAGS=-static CPPFLAGS=-Dre_max_failures=re_max_failures2 \
    ./configure --prefix=$LFS/static --disable-nls &&
make &&
make install

5.8.2. Command explanations

CPPFLAGS=-Dre_max_failures=re_max_failures2: The CPPFLAGS variable is a variable that's read by the cpp program (C PreProcessor). The value of this variable tells the preprocessor to replace every instance of re_max_failures it finds by re_max_failures2 before handing the source file to the compiler itself for compilation. This package has problems linking statically on systems that run an older Glibc version and this construction fixes that problem.

5.8.3. Contents of Diffutils

Last checked against version 2.8.1.

5.8.4. Diffutils Installation Dependencies

Last checked against version 2.7.

Bash: sh
Binutils: ld, as
Diffutils: cmp
Fileutils: chmod, cp, install, mv, rm
Gcc: cc1, collect2, cpp0, gcc
Grep: egrep, grep
Make: make
Sed: sed
Sh-utils: date, hostname
Textutils: cat, tr