netlib-scalapack: use dso_suffix

This commit is contained in:
Denis Davydov 2016-07-18 10:11:18 +02:00
parent 1bd3a702c9
commit 2e4966c854

View file

@ -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)]