SHLIBVER in OpenSSL

Kill the Penguin admin at forkthepenguin.com
Wed Apr 16 16:51:56 PDT 2003


Can anyone explain why version 3 of libcrypto.so (libcrypto.so.3) is only
created when OpenSSL is installed in /usr/local? If OPENSSL_OVERWRITE_BASE
is defined during make, the version is kept at 2 (libcrypto.so.2).
Unfortunately ModSSL appears to want libcrypto.so.3 installed which
requires that a local installation of OPENSSL exist in addition to the
base install. Preferrably a single installation of OpenSSL can be
maintained in the base OS. Below is the Makefile code from OpenSSL 0.9.7a.

Failing this, is there a way to tell ModSSL to use libcrypto.so.2?

Much appreciated.

Chris

.if defined(NOSHARED)
PLIST_SUB+=     SHARED="@comment "
.else
PLIST_SUB+=     SHARED=""
ALL_TARGET=     freebsd-shared all
.if exists(/usr/lib/libcrypto.so.3)
SHLIBVER=       4
.else
SHLIBVER=       3
.endif
MAKE_ENV+=      SHLIBVER=${SHLIBVER}
PLIST_SUB+=     SHLIBVER=${SHLIBVER}
INSTALLS_SHLIB= yes
.endif

.if defined(OPENSSL_OVERWRITE_BASE)
PKGNAMESUFFIX=  -overwrite-base
PREFIX=         /usr
.if exists(/usr/lib/libcrypto.so.3)
SHLIBVER=       3
.else
SHLIBVER=       2
.endif




More information about the freebsd-questions mailing list