#!/bin/sh
# precompile_gzip
LFS=/mnt/lfs
cd $LFS/usr/src/gzip*

patch -Np1 -i ../gzip-1.2.4a.patch

./configure --prefix=$LFS/usr &&
make LDFLAGS=-static &&
make install &&
cp $LFS/usr/bin/gunzip $LFS/usr/bin/gzip $LFS/bin &&
rm $LFS/usr/bin/gunzip $LFS/usr/bin/gzip
