6.26. Patch-2.6.1

The Patch package contains a program for modifying or creating files by applying a “patch” file typically created by the diff program.

6.26.1. Installation of Patch

When cross-compiling configure cannot properly detect the existance of certain features. Override this behaviour:

echo "ac_cv_func_strnlen_working=yes" > config.cache

Prepare Patch for compilation:

CC="${CC} ${BUILD64}" ./configure --prefix=/tools \
    --build=${CLFS_HOST} --host=${CLFS_TARGET} \
    --cache-file=config.cache

Compile the package:

make

Install the package:

make install

Details on this package are located in Section 10.74.2, “Contents of Patch.”