Simplify Makefile.shared
authorRichard Levitte <levitte@openssl.org>
Fri, 21 Jul 2017 16:04:51 +0000 (18:04 +0200)
committerRichard Levitte <levitte@openssl.org>
Mon, 24 Jul 2017 09:43:19 +0000 (11:43 +0200)
commit8e5cd8b012b0fdab1374aefe70959b781c545b10
treeb4883c91795c4751867a9ba3bb150d6ac86bb833
parent0e5be9faa3958cce5eb776c65fcf31b634590ea8
Simplify Makefile.shared

Makefile.shared was designed to figure out static library names,
shared library names, library version compatibility, import library
names and the like on its own.  This was a design for pre-1.1.0
OpenSSL because the main Makefile didn't have all that knowledge.

With 1.1.0, the situation isn't the same, a lot more knowledge is
included in the main Makefile, and while Makefile.shared did things
right most of the time (there are some corner cases, such as the
choice of .sl or .so as DSO extension on some HPUX versions), there's
still an inherent fragility when one has to keep an eye on
Makefile.shared to make sure it produces what the main Makefile
produces.

This change simplifies Makefile.shared by removing all its
"intelligence" and have it depend entirely on the input from the main
Makefile instead.  That way, all the naming is driven from
configuration data.

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3983)

(cherry picked from commit d07abe13a7955296da756d3f5032a276ac3d47ee)
Configurations/unix-Makefile.tmpl
Makefile.shared