6.18. Tar-1.15.1

#### Cross-Compiled Linux From Scratch - Version 1.0.0rc1-x86

### Chapter 6. Constructing a Temporary System

- Prev

  Sed-4.1.5

- Next

  Texinfo-4.8

- Up.
- Home

# 6.18. Tar-1.15.1

The Tar package contains an archiving program.

## 6.18.1. Installation of Tar

Tar has an issue with cross-compiling where it can't find `getline`. Fix it here:

    echo "am_cv_func_working_getline=yes" >> config.cache

Prepare Tar for compilation:

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

Compile the package:

    make

Install the package:

    make install

Details on this package are located in Section 10.49.2, “Contents of Tar.”

- Prev

  Sed-4.1.5

- Next

  Texinfo-4.8

- Up.
- Home.