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:
|
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.