Make "make variables" config attributes for overridable flags
authorRichard Levitte <levitte@openssl.org>
Tue, 6 Mar 2018 19:35:30 +0000 (20:35 +0100)
committerRichard Levitte <levitte@openssl.org>
Thu, 8 Mar 2018 16:24:02 +0000 (17:24 +0100)
commitabe256e7951e6d57f8f6b4364ea696eb4ead3852
treec135023d8af4063a2907a349cb580bebb92849aa
parent48dcca265c9cb0c26459240ab1858577dacf9e67
Make "make variables" config attributes for overridable flags

With the support of "make variables" comes the possibility for the
user to override them.  However, we need to make a difference between
defaults that we use (and that should be overridable by the user) and
flags that are crucial for building OpenSSL (should not be
overridable).

Typically, overridable flags are those setting optimization levels,
warnings levels, that kind of thing, while non-overridable flags are,
for example, macros that indicate aspects of how the config target
should be treated, such as L_ENDIAN and B_ENDIAN.

We do that differentiation by allowing upper case attributes in the
config targets, named exactly like the "make variables" we support,
and reserving the lower case attributes for non-overridable project
flags.

Reviewed-by: Andy Polyakov <appro@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5534)
15 files changed:
Configurations/00-base-templates.conf
Configurations/10-main.conf
Configurations/50-djgpp.conf
Configurations/50-haiku.conf
Configurations/50-masm.conf
Configurations/90-team.conf
Configurations/descrip.mms.tmpl
Configurations/shared-info.pl
Configurations/unix-Makefile.tmpl
Configurations/windows-makefile.tmpl
Configure
apps/CA.pl.in
apps/tsget.in
crypto/build.info
tools/c_rehash.in