netlib-scalapack: use dso_suffix
This commit is contained in:
parent
1bd3a702c9
commit
2e4966c854
1 changed files with 2 additions and 3 deletions
|
@ -86,10 +86,9 @@ def install(self, spec, prefix):
|
|||
|
||||
def setup_dependent_package(self, module, dependent_spec):
|
||||
spec = self.spec
|
||||
lib_dsuffix = '.dylib' if sys.platform == 'darwin' else '.so'
|
||||
lib_suffix = lib_dsuffix if '+shared' in spec else '.a'
|
||||
lib_suffix = dso_suffix if '+shared' in spec else 'a'
|
||||
|
||||
spec.fc_link = '-L%s -lscalapack' % spec.prefix.lib
|
||||
spec.cc_link = spec.fc_link
|
||||
spec.libraries = [join_path(spec.prefix.lib,
|
||||
'libscalapack%s' % lib_suffix)]
|
||||
'libscalapack.%s' % lib_suffix)]
|
||||
|
|
Loading…
Reference in a new issue