Harmonize Unix Makefile template with Windows dito
authorRichard Levitte <levitte@openssl.org>
Sat, 12 Mar 2016 08:38:20 +0000 (09:38 +0100)
committerRichard Levitte <levitte@openssl.org>
Sat, 12 Mar 2016 23:02:55 +0000 (00:02 +0100)
commitbbd9a50fa8e371927c290170ab6b8ac2597e5ff9
tree79e06f0a95a5a3269bffa04c124d6572375f0f52
parent8cab4e9bc73a66b64aae179db86493fd28c39b64
Harmonize Unix Makefile template with Windows dito

The variable SHARED_CFLAGS and SHARD_LDFLAGS were used in the Unix
template because they normally contain options used when building
"shared".  The Windows template, on the other hand, uses LIB_CFLAGS,
to express the intended use of those flags rather than their content.
The Windows template still used SHARED_LDFLAGS, which seems
inconsistent.

To harmonize the two, any SHARED_CFLAGS gets renamed to LIB_CFLAGS and
SHARED_LDFLAGS to LIB_LDFLAGS.  That makes the intent consistent along
with BIN_{C,LD}FLAGS and DSO_{C,LD}FLAGS.

Finally, make sure to pass down $(LIB_CFLAGS) or $(DSO_CFLAGS) along
with $(CFLAGS) when using Makefile.shared.

Reviewed-by: Rich Salz <rsalz@openssl.org>
Configurations/unix-Makefile.tmpl
Configurations/windows-makefile.tmpl