From dd7ebcf2d909a70442b9ff8a77311ec1a1d7eaa6 Mon Sep 17 00:00:00 2001 From: Christoph Junghans Date: Mon, 4 Nov 2019 16:35:28 -0700 Subject: [PATCH] portage: fix lapack/blas linkage (#13558) --- var/spack/repos/builtin/packages/portage/package.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/var/spack/repos/builtin/packages/portage/package.py b/var/spack/repos/builtin/packages/portage/package.py index 283fcef39a..9f00a614a4 100644 --- a/var/spack/repos/builtin/packages/portage/package.py +++ b/var/spack/repos/builtin/packages/portage/package.py @@ -51,6 +51,11 @@ def cmake_args(self): else: options.append('-DENABLE_MPI=OFF') + options.append('-DBLA_VENDOR=' + self.spec['blas'].name.upper()) + options.append('-DBLAS_LIBRARIES=' + self.spec['blas'].libs.joined()) + options.append('-DLAPACK_LIBRARIES=' + + self.spec['lapack'].libs.joined()) + options.append("-DLAPACKE_LIBRARY=" + self.spec["lapack"].libs.joined(";"))