Details on this package are located in Section 8.65.2, “Contents of Patch.”
The Patch package contains a program for modifying or creating files by applying a “patch” file typically created by the diff program.
Update helper scripts to allow cross compilation for loongarch:
tar xf ../config-20210826.tar.xz --strip-components=1 -C build-aux
Prepare Patch for compilation:
./configure --prefix=/usr \ --host=$LFS_TGT \ --build=$(build-aux/config.guess)
Compile the package:
make
Install the package:
make DESTDIR=$LFS install
Details on this package are located in Section 8.65.2, “Contents of Patch.”