diff options
-rw-r--r-- | var/spack/repos/builtin/packages/veclibfort/package.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/veclibfort/package.py b/var/spack/repos/builtin/packages/veclibfort/package.py index 26e64248bb..4a056803ca 100644 --- a/var/spack/repos/builtin/packages/veclibfort/package.py +++ b/var/spack/repos/builtin/packages/veclibfort/package.py @@ -44,6 +44,7 @@ class Veclibfort(Package): provides('blas') provides('lapack') + @property def libs(self): shared = True if '+shared' in self.spec else False return find_libraries( @@ -60,6 +61,6 @@ class Veclibfort(Package): # test fc = which('fc') flags = ['-o', 'tester', '-O', 'tester.f90'] - flags.extend(spec.libs.ld_flags.split()) + flags.extend(spec['veclibfort'].libs.ld_flags.split()) fc(*flags) Executable('./tester')() |