next up previous contents index
Next: Compiling openssl-0.9.6e Up: Setting up SSH Previous: Compiling zlib-1.1.4   Contents   Index


Compiling gmp-2.0.2.tar.gz

This source package provides "Arithmetic without limitations" following their advertise :-) Well, gmp provides a library for doing mathematical operations, needed by ossh e.g. for the computing of primes.

First, we need to download the appropriate source package:


Table 8.2: Source package, size and URL for gmp.
Package Size License URL
gmp-2.0.2 361 KB LGPLv2 http://gd.tuwien.ac.at/gnu/gnusrc/gmp/gmp-2.0.2.tar.gz


Following, we have to remove the sh machine definitions for forcing the use of no assembly code. They don't work with our Dreamcast.

$ tar -xvzf ../SRC/gmp-2.0.2.tar.gz -C .
$ cd gmp-2.0.2/mpn
$ mv sh sh-old
$ cd ..

Now, we're ready to compile gmp-2.0.2:

$ PATH=$UCLIBC:$PATH ./configure --nfp --host=sh
$ PATH=$UCLIBC:$PATH make

The temporary environment variable setting avoids applying a short patch. Now, copy the resulting library to your appropriate toolchain directory, e.g.

$ cp libgmp.a $UCLIBC/lib

And finally, copy the header - file to your appropriate toolchain directory, e.g.

$ cp gmp.h $UCLIBC/include

That's all. Now, we're ready to compile the encrypting and decrypting library openssl.


next up previous contents index
Next: Compiling openssl-0.9.6e Up: Setting up SSH Previous: Compiling zlib-1.1.4   Contents   Index
Christian Berger 2004-10-19