summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/openblas/package.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/var/spack/repos/builtin/packages/openblas/package.py b/var/spack/repos/builtin/packages/openblas/package.py
index 74961d16aa..ae9f2e6070 100644
--- a/var/spack/repos/builtin/packages/openblas/package.py
+++ b/var/spack/repos/builtin/packages/openblas/package.py
@@ -570,17 +570,19 @@ class MakefileBuilder(spack.build_systems.makefile.MakefileBuilder):
# Openblas may pass its own test but still fail to compile Lapack
# symbols. To make sure we get working Blas and Lapack, do a small
# test.
- source_file = join_path(os.path.dirname(self.module.__file__), "test_cblas_dgemm.c")
- blessed_file = join_path(os.path.dirname(self.module.__file__), "test_cblas_dgemm.output")
+ source_file = join_path(os.path.dirname(self.pkg.module.__file__), "test_cblas_dgemm.c")
+ blessed_file = join_path(
+ os.path.dirname(self.pkg.module.__file__), "test_cblas_dgemm.output"
+ )
include_flags = spec["openblas"].headers.cpp_flags
link_flags = spec["openblas"].libs.ld_flags
- if self.compiler.name == "intel":
+ if self.pkg.compiler.name == "intel":
link_flags += " -lifcore"
if self.spec.satisfies("threads=pthreads"):
link_flags += " -lpthread"
if spec.satisfies("threads=openmp"):
- link_flags += " -lpthread " + self.compiler.openmp_flag
+ link_flags += " -lpthread " + self.pkg.compiler.openmp_flag
output = compile_c_and_execute(source_file, [include_flags], link_flags.split())
compare_output_file(output, blessed_file)