Fixes veclibfort which was broken by PR1875 (#3368)

Funded-by: IDEAS
Project: IDEAS/xSDK
Thanks-to: Adam J. Stewart
This commit is contained in:
Barry Smith 2017-03-05 07:34:38 -06:00 committed by Adam J. Stewart
parent a7bab8a418
commit 00d6cb9a8f

View file

@ -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')()