From b96487108a6db5a552ac2e8942561a146fe32395 Mon Sep 17 00:00:00 2001 From: adamws Date: Tue, 6 Feb 2024 13:09:26 +0100 Subject: [PATCH] (#22559) openssl: add `enable_trace` option This option is required in order to use tracing API introduced in OpenSSL 3.0 [1]. Fixes #22556 [1] https://www.openssl.org/docs/manmaster/man3/OSSL_trace_set_channel.html#Configure-Tracing --- recipes/openssl/3.x.x/conanfile.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/recipes/openssl/3.x.x/conanfile.py b/recipes/openssl/3.x.x/conanfile.py index b7033e12ed40c..f23cd0b52fadd 100644 --- a/recipes/openssl/3.x.x/conanfile.py +++ b/recipes/openssl/3.x.x/conanfile.py @@ -31,6 +31,7 @@ class OpenSSLConan(ConanFile): "386": [True, False], "capieng_dialog": [True, False], "enable_capieng": [True, False], + "enable_trace": [True, False], "no_aria": [True, False], "no_autoload_config": [True, False], "no_asm": [True, False], @@ -386,6 +387,9 @@ def _configure_args(self): args.append("no-md2" if self.options.get_safe("no_md2", True) else "enable-md2") args.append("-DOPENSSL_TLS_SECURITY_LEVEL=%s" % str(self.options.tls_security_level)) + if self.options.get_safe("enable_trace"): + args.append("enable-trace") + if self.settings.os == "Neutrino": args.append("no-asm -lsocket -latomic")