next up previous contents index
Next: Compiling gmp-2.0.2.tar.gz Up: Setting up SSH Previous: Setting up SSH   Contents   Index


Compiling zlib-1.1.4

This source package provides some basic compressing and uncompressing algorithms needed by ossh-1.5.12.

First, we need to download the appropriate source package:


Table 8.1: Source package, size and URL for zlib.
Package Size License URL
zlib-1.1.4 176 KB free ftp://ftp.info-zip.org/pub/infozip/zlib/zlib-1.1.4.tar.gz


Now, we're ready to compile zlib-1.1.4 (assuming your pwd points to $\sim$/Dreamcast/SRC):

$ cd ../BUILD
$ tar -xvzf ../SRC/zlib-1.1.4.tar.gz -C .
$ cd zlib-1.1.4
$ prefix=$UCLIBC CC=$UCLIBC/usr/bin/cc \
  AR="$UCLIBC/usr/bin/ar rc" \
  RANLIB="$UCLIBC/usr/bin/ranlib" CFLAGS="-Os"\
   ./configure
$ make all install
$ cd ..

That's all. You'll have a library for statically linking called libz.a besides a header file zlib.h being installed to your $UCLIBC toolchain.



Christian Berger 2004-10-19