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 some 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:

CC="${CC} ${BUILD64}" \
   ./configure --prefix=/tools --cache-file=config.cache \
   --build=${CLFS_HOST} --host=${CLFS_TARGET}

Compile the package:

make

Install the package:

make install

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