Zlib

From CBLFS
Jump to: navigation, search
Download Source: http://prdownloads.sourceforge.net/libpng/zlib-1.2.3.tar.gz?download
Patches: http://svn.cross-lfs.org/svn/repos/patches/zlib/zlib-1.2.3-fPIC-1.patch

Contents

Introduction to Zlib

zlib is designed to be a free, general-purpose, legally unencumbered -- that is, not covered by any patents -- lossless data-compression library for use on virtually any computer hardware and operating system. The zlib data format is itself portable across platforms. Unlike the LZW compression method used in Unix compress(1) and in the GIF image format, the compression method currently used in zlib essentially never expands the data. (LZW can double or triple the file size in extreme cases.) zlib's memory footprint is also independent of the input data and can be reduced, if necessary, at some cost in compression.

Project Homepage: http://www.zlib.net/

Dependencies

Required

Optional

Non-Multilib

Please contribute

Multilib

32Bit

Compile the package:

patch -Np1 -i ../zlib-1.2.3-fPIC-1.patch
CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" ./configure --prefix=/usr \
  --shared

make

Install the package

make install
mv -v /usr/lib/libz.so.* /lib
ln -svf ../../lib/libz.so.1 /usr/lib/libz.so
chmod -v 644 /usr/lib/libz.a

N32

Please contribute

64Bit

Compile the package:

patch -Np1 -i ../zlib-1.2.3-fPIC-1.patch
CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" ./configure --prefix=/usr \
  --shared --libdir=/usr/lib64

make

Install the package

make install
mv -v /usr/lib64/libz.so.* /lib64
ln -svf ../../lib64/libz.so.1 /usr/lib64/libz.so
chmod -v 644 /usr/lib64/libz.a
Personal tools