5.16. Installing Patch-2.5.4

Estimated build time:           1 minute
Estimated required disk space:  2 MB

5.16.1. Installation of Patch

Install Patch by running the following commands:

export CPPFLAGS=-D_GNU_SOURCE &&
./configure --prefix=$LFS/usr &&
unset CPPFLAGS &&
make LDFLAGS=-static &&
make install

5.16.2. Command explanations

CPPFLAGS=-D_GNU_SOURCE: Adding -D_GNU_SOURCE to CPPFLAGS command before we configure patch fixes installation of the package on PPC and m68k platforms (that we know of). It also doesn't hurt compilation on other platforms (such as x86) so we do it by default.

5.16.3. Contents of patch-2.5.4

5.16.4. Dependencies

Patch-2.5.4 needs the following to be installed:


bash: sh
binutils: as, ld
diffutils: cmp
fileutils: chmod, install, mv, rm
gcc: cc, cc1, collect2, cpp0, gcc
glibc: getconf
grep: egrep, grep
make: make
sed: sed
sh-utils: echo, expr, hostname, uname
textutils: cat, tr