Skip to content

Commit

Permalink
libest: fic OpenSSL dependency configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur committed Nov 3, 2023
1 parent a43a822 commit ba9213a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions recipes/libest/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
from conan.errors import ConanInvalidConfiguration
from conan.tools.apple import is_apple_os
from conan.tools.files import apply_conandata_patches, chdir, copy, export_conandata_patches, get, replace_in_file
from conan.tools.gnu import Autotools, AutotoolsToolchain, PkgConfigDeps, AutotoolsDeps
from conan.tools.gnu import Autotools, AutotoolsToolchain
from conan.tools.layout import basic_layout
from conan.tools.microsoft import unix_path

required_conan_version = ">=1.53.0"

Expand Down Expand Up @@ -58,10 +59,9 @@ def source(self):

def generate(self):
tc = AutotoolsToolchain(self)
tc.generate()
tc = AutotoolsDeps(self)
tc.generate()
tc = PkgConfigDeps(self)
openssl_info = self.dependencies["openssl"].cpp_info
tc.make_args.append("SSL_CFLAGS=" + " ".join([f"-I{unix_path(self, p)}" for p in openssl_info.includedirs] + [f"-D{d}" for d in openssl_info.defines]))
tc.make_args.append("SSL_LDFLAGS=" + " ".join([f"-L{unix_path(self, p)}" for p in openssl_info.libdirs] + openssl_info.sharedlinkflags + openssl_info.exelinkflags))
tc.generate()

def _patch_sources(self):
Expand Down

0 comments on commit ba9213a

Please sign in to comment.