feelpp / spack

A flexible package manager that supports multiple versions, configurations, platforms, and compilers.
https://spack.io
Other
0 stars 0 forks source link

libzip links with external libs found on host #6

Open prudhomm opened 6 days ago

prudhomm commented 6 days ago

Steps to reproduce

$ spack install libzip

Error message

we might get linking issues if we have an environment having openssl and libzip and ssl is installed with another version on the host such as feelpp/spack#12

Information on your system

libzip enable by default a few libs https://github.com/nih-at/libzip/blob/main/CMakeLists.txt by default

option(ENABLE_COMMONCRYPTO "Enable use of CommonCrypto" ON)
option(ENABLE_GNUTLS "Enable use of GnuTLS" ON)
option(ENABLE_MBEDTLS "Enable use of mbed TLS" ON)
option(ENABLE_OPENSSL "Enable use of OpenSSL" ON)
option(ENABLE_WINDOWS_CRYPTO "Enable use of Windows cryptography libraries" ON)

option(ENABLE_BZIP2 "Enable use of BZip2" ON)
option(ENABLE_LZMA "Enable use of LZMA" ON)
option(ENABLE_ZSTD "Enable use of Zstandard" ON)

I suggest to be enable to enable/disable them and have then enabled by default using variants

General information