Details on this package are located in Section 8.62.2, “Contents of Diffutils.”
The Diffutils package contains programs that show the differences between files or directories.
Prepare Diffutils for compilation:
./configure --prefix=/usr \
--host=$LFS_TGT \
gl_cv_func_strcasecmp_works=yes \
--build=$(./build-aux/config.guess)
The meaning of the configure options:
gl_cv_func_strcasecmp_works=yes
This option specify the result of a check for the
strcasecmp function. The check
requires running a compiled C program, and this is impossible
during cross-compilation because in general a cross-compiled
program cannot run on the host distro. Normally for such a
check the configure script would use
a fall-back value for cross-compilation, but the fall-back
value for this check is absent and the configure script would have
no value to use and error out. Upstream have already fixed
the issue, but to apply the fix we'd need to run autoconf that the host
distro may lack. So we just specify the check result
(yes as we know the strcasecmp function in Glibc-2.43 works
fine) instead, then configure will just use the
specified value and skip the check.
Compile the package:
make
Install the package:
make DESTDIR=$LFS install
Details on this package are located in Section 8.62.2, “Contents of Diffutils.”