OpenSSL 0.9.8d

This description is based on the instructions from the BLFS-book. Here I only describe the main differences compared to the book.

Downloads

OpenSSL 0.9.8d:

Required Patches:

Preparations

As recommended by the book, apply the sed command and the man-page patch:

 sed -i -e 's/mcpu/march/' config &&
 patch -Np1 -i ../openssl-0.9.8c-fix_manpages-1.patch

The following patch is required to have the libraries for each architecture installed into different directories:

 patch -Np1 -i ../openssl-0.9.8d-allow-libdir.patch

32-bit build

Calling ./Configure instead of ./config skips the automatic system detection and lets you choose the architecture. So configure OpenSSL for 32-bit as follows:

 ./Configure linux-elf --openssldir=/etc/ssl \
     --prefix=/usr shared zlib-dynamic && 
 sed -i 's@= \?gcc@= gcc -m32@' Makefile

The additional sed is required to enforce the compiler flags for building 32-bit libs.

Now build the package:

 make MANDIR=/usr/share/man LIBDIR=lib

Optionally test the result:

 make test

I usually don't install all the documentation. If you do so, please check the BLFS-book. Install OpenSSL as root:

 make MANDIR=/usr/share/man LIBDIR=lib install && 
 cp -v -r certs /etc/ssl

64-bit build

Prior to builing the 64-bit version, the package needs to be clean:

 make clean

The config script will correctely detect the 64-bit architecture and set the right compiler and linker flags:

 ./config --openssldir=/etc/ssl \
    --prefix=/usr shared zlib-dynamic

Build the package:

 make MANDIR=/usr/share/man LIBDIR=lib64

Optionally test the result:

 make test

Install it as the root user (without documentation):

 make MANDIR=/usr/share/man LIBDIR=lib64 install &&
 cp -v -r certs /etc/ssl

Zuletzt geändert am 29 September 2006 17:03 Uhr von chrschn