Fixes veclibfort which was broken by PR1875 (#3368)
Funded-by: IDEAS Project: IDEAS/xSDK Thanks-to: Adam J. Stewart
This commit is contained in:
parent
a7bab8a418
commit
00d6cb9a8f
1 changed files with 2 additions and 1 deletions
|
@ -44,6 +44,7 @@ class Veclibfort(Package):
|
||||||
provides('blas')
|
provides('blas')
|
||||||
provides('lapack')
|
provides('lapack')
|
||||||
|
|
||||||
|
@property
|
||||||
def libs(self):
|
def libs(self):
|
||||||
shared = True if '+shared' in self.spec else False
|
shared = True if '+shared' in self.spec else False
|
||||||
return find_libraries(
|
return find_libraries(
|
||||||
|
@ -60,6 +61,6 @@ def install(self, spec, prefix):
|
||||||
# test
|
# test
|
||||||
fc = which('fc')
|
fc = which('fc')
|
||||||
flags = ['-o', 'tester', '-O', 'tester.f90']
|
flags = ['-o', 'tester', '-O', 'tester.f90']
|
||||||
flags.extend(spec.libs.ld_flags.split())
|
flags.extend(spec['veclibfort'].libs.ld_flags.split())
|
||||||
fc(*flags)
|
fc(*flags)
|
||||||
Executable('./tester')()
|
Executable('./tester')()
|
||||||
|
|
Loading…
Reference in a new issue