openmolcas: properly build shared libs.

Remove unneeded static libs when build as static build.
This commit is contained in:
Markus Kowalewski 2024-10-29 11:34:51 +01:00
parent 27684a5cd2
commit adaaba7b85

View File

@ -109,6 +109,8 @@ stdenv.mkDerivation rec {
(lib.strings.cmakeBool "DMRG" enableQcmaquis)
(lib.strings.cmakeBool "NEVPT2" enableQcmaquis)
"-DCMAKE_SKIP_BUILD_RPATH=ON"
(lib.strings.cmakeBool "BUILD_STATIC_LIBS" stdenv.hostPlatform.isStatic)
(lib.strings.cmakeBool "BUILD_SHARED_LIBS" (!stdenv.hostPlatform.isStatic))
] ++ lib.optionals (blas-ilp64.passthru.implementation == "openblas") [
"-DOPENBLASROOT=${blas-ilp64.passthru.provider.dev}"
"-DLINALG=OpenBLAS"