diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2018-10-30 20:38:34 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2018-10-30 20:38:34 +0100 |
commit | dd9da5146299b769fad874d32a8ae110312cb68f (patch) | |
tree | bc7acd81269587140a3746deaf96fae86ad4e628 /scripts/diffconfig.sh | |
parent | 3dba85254719215747e150301081477a47b38645 (diff) | |
download | upstream-dd9da5146299b769fad874d32a8ae110312cb68f.tar.gz upstream-dd9da5146299b769fad874d32a8ae110312cb68f.tar.bz2 upstream-dd9da5146299b769fad874d32a8ae110312cb68f.zip |
openssl: enable OPENSSL_WITH_DEPRECATED when OpenSSL is built as a build dep
Some package (e.g. libunbound) depend on OPENSSL_WITH_DEPRECATED. In some
situations it may happen that libunbound and openssl are only pulled in as
build dependencies, but are not enabled in .config.
In such cases, the defaults of symbols like OPENSSL_WITH_DEPRECATED are
ignored (as the whole symbol depends on PACKAGE_libopenssl), and config
symbol dependencies of libunbound aren't effective either (as libunbound
is not actually enabled).
This commit works around the issue by introducing a hidden negated symbol
OPENSSL_NO_DEPRECATED, which is always disabled when PACKAGE_libopenssl is
disabled, and ensures that OpenSSL is built with deprecated APIs in this
case. A user can still manage to break the build by explicitly enabling
libopenssl and disabling OPENSSL_WITH_DEPRECATED; the interaction between
build dependencies and config symbols will require further discussion.
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Diffstat (limited to 'scripts/diffconfig.sh')
0 files changed, 0 insertions, 0 deletions