Installation of Zlib
patch -Np1 -i ../zlib-&zlib-version;-final-vsnprintf.patch
Prepare Zlib to be compiled:
CFLAGS="-O2 -pipe" CPPFLAGS="-DHAS_vsnprintf" \
./configure --prefix=/stage1 --shared
The -fPIC flag helps to assure
quality in the dynamic zlib library.
Some packages expect a static zlib library to be present
on the system. To satisfy those programs, compile both the
shared and static libraries:
make LDFLAGS="-s"
make test
Install the libraries:
make install