Estimated build time: 0.39 SBU Estimated required disk space: 10 MB |
Last checked against version 2.8.1.
The programs from this package show you the differences between two files or directories. It's most common use is to create software patches.
Diffutils installs the following files:
cmp, diff, diff3 and sdiff
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
Prepare Diffutils to be compiled:
LDFLAGS="-static" CPPFLAGS=-Dre_max_failures=re_max_failures2 \ ./configure --prefix=$LFS/static --disable-nls |
The meaning of the configure options are:
LDFLAGS="-static": This is the most common way to tell a package that all programs should be statically linked. This way the LDFLAGS environment variable is set, but only in the subshell that the configure script runs in. When configure has done its job, the LDFLAGS environment variable won't exist anymore and the Makefile files contain will contain this variable locally.
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 with 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.
Continue with compiling the package:
make |
And finish off installing the package:
make install |