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


Compiling openssl-0.9.6e

This source package bundles several encrypting algorithms, used by ossh.

First, we need to download the appropriate source package:


Table 8.3: Source package, size and URL for openssl.
Package Size License URL
openssl-0.9.6e 2,108 KB OpenSSL / SLeay http://www.openssl.org/source/openssl-0.9.6e.tar.gz


Next, fetch the needed patch (assuming your pwd points to $\sim$/Dreamcast/SRC):

$ wget http://www.tu-bs.de/~y0018536/dc/src/\
  openssl-0.9.6e-uclibc-dreamcast.patch

Now, we're ready to configure openssl-0.9.6e:

$ cd ../BUILD
$ tar -xvzf ../SRC/openssl-0.9.6e.tar.gz -C .
$ cd openssl-0.9.6e
$ patch -p1 < ../../SRC/\
  openssl-0.9.6e-uclibc-dreamcast.patch
$ ./Configure --prefix=$UCLIBC \
  --openssldir=$UCLIBC/openssl \
  no-shared no-asm linux-elf-sh

The build process will fail for applications and test programs, because we're on a cross building process. So, we just delete the appropriate folders:

$ rm -fr apps test

Following, it's time for compiling and installing openssl-0.9.6e:

$ make CC=$UCLIBC/usr/bin/cc \
  AR="$UCLIBC/usr/bin/ar r" \
  RANLIB=$UCLIBC/usr/bin/ranlib
$ make install

Now, you've got the library libcrypto.a as well as libssl.a besides the header files installed in $UCLIBC/include/openssl. At this point, all necessary libraries and header files are present for compiling ossh.


next up previous contents index
Next: Compiling ossh-1.5.12 Up: Setting up SSH Previous: Compiling gmp-2.0.2.tar.gz   Contents   Index
Christian Berger 2004-10-19