6.44.3. Contents of Patch
Installed program: patch
The Patch package contains a program for modifying or creating files by applying a “patch” file typically created by the diff program.
This package requires compiler variables to be set for the target in the environment.
export CC="${CLFS_TARGET}-gcc"
export CXX="${CLFS_TARGET}-g++"
export AR="${CLFS_TARGET}-ar"
export AS="${CLFS_TARGET}-as"
export RANLIB="${CLFS_TARGET}-ranlib"
export LD="${CLFS_TARGET}-ld"
export STRIP="${CLFS_TARGET}-strip"Configure would like to hardcode the full path to ed. When ed isn't found it falls back on just "ed". Since ed isn't installed by default but it may be installed on the host, Lets force the fallback value.
cat > config.cache << EOF ac_cv_path_ed_PROGRAM=ed EOF
Prepare Patch for compilation:
./configure --build=${CLFS_HOST} --host=${CLFS_TARGET} \
--prefix=/usr --cache-file=config.cacheCompile the package:
make
Install the package:
make prefix=${CLFS}/usr install