This source package bundles several encrypting algorithms, used by ossh.
First, we need to download the appropriate source package:
|
Next, fetch the needed patch (assuming your pwd
points to
/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.