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:

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