Skip to content

Commit

Permalink
Merge pull request #195 from FNALssi/gartung-qt-slf7-again
Browse files Browse the repository at this point in the history
QT find ssl libraries in non default directories using OPENSSL_LIBS environment variables
  • Loading branch information
gartung authored Sep 22, 2023
2 parents 41a29d2 + fe9a065 commit 52c363c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions var/spack/repos/builtin/packages/qt/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,8 @@ def setup_build_environment(self, env):
# Prevent possibly incompatible system LLVM from being found
llvm_path = "/spack-disable-llvm"
env.set("LLVM_INSTALL_DIR", llvm_path)
if self.spec.satisfies("os=scientific7"):
env.set("OPENSSL_LIBS", "-L/usr/lib64/openssl11 -lssl -lcrypto")

def setup_run_environment(self, env):
env.set("QTDIR", self.prefix)
Expand Down Expand Up @@ -557,6 +559,9 @@ def common_config_args(self):
config_args.append("-openssl-linked")
config_args.extend(pkg.libs.search_flags.split())
config_args.extend(pkg.headers.include_flags.split())
if spec.satisfies("os=scientific7"):
config_args.append("-I/usr/include/openssl11")
config_args.append("-L/usr/lib64/openssl11")
else:
config_args.append("-no-openssl")

Expand Down

0 comments on commit 52c363c

Please sign in to comment.