config: Pass diverse flags to Configure via the environment
authorRichard Levitte <levitte@openssl.org>
Wed, 7 Mar 2018 21:44:59 +0000 (22:44 +0100)
committerRichard Levitte <levitte@openssl.org>
Thu, 8 Mar 2018 16:24:02 +0000 (17:24 +0100)
commit2ab92ae9dca7c4a9dc3b8468333b10aff7629c5a
tree8aa74fb30da8a2dce76828f648c6d04891b29f85
parent72d7f221ee7a3909496c240bab85770b48b515dd
config: Pass diverse flags to Configure via the environment

Passing flags "discovered" by 'config' on the command line to
'Configure' mixes them up with flags given by the user.  That is
contrary to their intention, so they need to be passed in a different
manner.

Enter the environment variables __CNF_CPPDEFINES, __CNF_CPPINCLUDES,
__CNF_CPPFLAGS, __CNF_CFLAGS, __CNF_CXXFLAGS, __CNF_LDFLAGS, and
__CNF_LDLIBS, initialised by 'config', and then used by Configure to
initialise these %config values: defines, includes, cppflags, cflags,
cxxflags, lflags, and ex_libs.

Reviewed-by: Andy Polyakov <appro@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5534)
Configure
config