6.8. Coreutils-5.96

#### Cross-Compiled Linux From Scratch - Version 1.0.0rc1-x86_64-Pure64

### Chapter 6. Constructing a Temporary System

- Prev

  Bzip2-1.0.3

- Next

  Diffutils-2.8.7

- Up.
- Home

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

    CC="${CC} ${BUILD64}" \
       ./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.”

- Prev

  Bzip2-1.0.3

- Next

  Diffutils-2.8.7

- Up.
- Home.