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:
|
Now, we're ready to compile zlib-1.1.4
(assuming your pwd
points to /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.