5.20. Gzip-1.3.12

The Gzip package contains programs for compressing and decompressing files.

User Notes: http://wiki.linuxfromscratch.org/hlfs/wiki/gzip

5.20.1. Installation of Gzip

The version of the function “futimens” used by Gzip is incompatible with the version that current Glibc provides, so we'll rename the function:

for file in gzip.c lib/utimens.{c,h} ; do \
   cp -v $file{,.orig}
   sed 's/futimens/gl_&/' $file.orig > $file
done

By default Gzip uses assembly code. While this may preform better, it is not position independent. The assembly code causes text relocation which is disallowed by options in PaX/Grsec kernels. The DEFS environment variable is set to use only C code.

Prepare Gzip for compilation:

env DEFS=NO_ASM ./configure --prefix=/tools

Compile the package:

make

Install the package:

make install

Details on this package are located in Section 6.45.2, “Contents of Gzip.”