6.14. Coreutils-7.6

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

6.14.1. Installation of Coreutils

Configure can not properly determine how to get free space when cross-compiling - as a result, the df program will not be built. Add the following entries to config.cache to correct this, and fix various cross-compiling issues:

cat > config.cache << EOF
fu_cv_sys_stat_statfs2_bsize=yes
gl_cv_func_rename_trailing_slash_bug=no
gl_cv_func_working_mkstemp=yes
EOF

Prepare Coreutils for compilation:

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

Compile the package:

make

Install the package:

make install

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