Simplify the handling of shared library version numbers
authorRichard Levitte <levitte@openssl.org>
Wed, 19 Jul 2017 08:13:41 +0000 (10:13 +0200)
committerRichard Levitte <levitte@openssl.org>
Wed, 26 Jul 2017 20:53:03 +0000 (22:53 +0200)
commitd445302418b41b76c15e103954b1311d98077480
tree3fe29109a41dbe6af982bc15e6592df700316f17
parent00606b06d5209368d1bd2fcab70bf6d9e2fe875f
Simplify the handling of shared library version numbers

$(SHLIB_MAJOR).$(SHLIB_MINOR) is really a synonym for
$(SHLIB_VERSION_NUMBER), and is therefore an added complexity,
so better to use $(SHLIB_VERSION_NUMBER) directly.  SHLIB_MAJOR and
SHLIB_MINOR are now unused, but are kept around purely as information
in case someone relies on their existence.

At the same time, add support for custom shared library extensions
with the three new Makefile variables SHLIB_EXT, SHLIB_EXT_SIMPLE and
SHLIB_EXT_IMPORT.  By default, they hold the variants of shared
library extensions we support.  On mingw and cygwin, SHLIB_EXT_IMPORT
is defined; on all other Unix platforms, it's empty.

An example to get shared libraries with a slightly different SOVER name:

    $ make SHLIB_EXT='.$(SHLIB_VERSION_NUMBER).so'

Fixes #3902

Reviewed-by: Andy Polyakov <appro@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3964)
Configurations/10-main.conf
Configurations/50-haiku.conf
Configurations/90-team.conf
Configurations/descrip.mms.tmpl
Configurations/unix-Makefile.tmpl
Configurations/windows-makefile.tmpl
Configure
VMS/openssl_shutdown.com.in
VMS/openssl_startup.com.in
build.info