6.8. Coreutils-5.96

The Coreutils package contains utilities for showing and setting the basic system characteristics.

6.8.1. Installation of Coreutils

Coreutils has an issues when cross-compiling. So we define the items cross-compiling doesn't like:

echo "ac_cv_sys_restartable_syscalls=yes" > config.cache
echo "ac_cv_func_setvbuf_reversed=yes" >> config.cache
echo "utils_cv_sys_open_max=1024" >> config.cache

Prepare Coreutils for compilation:

./configure --prefix=/tools --cache-file=config.cache \
    --build=${LFS_HOST} --host=${LFS_TARGET}

Compile the package:

make

Install the package:

make install

Details on this package are located in Section 10.10.2, “Contents of Coreutils.”