Details on this package are located in Section 8.56.2, “Contents of Gawk.”
The Gawk package contains programs for manipulating text files.
First, ensure some unneeded files are not installed:
sed -i 's/extras//' Makefile.in
Update helper scripts to allow cross compilation for loongarch:
tar xf ../config-20210826.tar.xz --strip-components=1 cp config.{guess,sub} extension/build-aux
Prepare Gawk for compilation:
./configure --prefix=/usr \ --host=$LFS_TGT \ --build=$(./config.guess)
Compile the package:
make
Install the package:
make DESTDIR=$LFS install
Details on this package are located in Section 8.56.2, “Contents of Gawk.”