fix scalapack suffix for osx
This commit is contained in:
parent
179ed7cce6
commit
95ad2875b6
1 changed files with 6 additions and 5 deletions
|
@ -1,4 +1,5 @@
|
||||||
from spack import *
|
from spack import *
|
||||||
|
import sys
|
||||||
|
|
||||||
class NetlibScalapack(Package):
|
class NetlibScalapack(Package):
|
||||||
"""ScaLAPACK is a library of high-performance linear algebra routines for parallel distributed memory machines"""
|
"""ScaLAPACK is a library of high-performance linear algebra routines for parallel distributed memory machines"""
|
||||||
|
@ -41,8 +42,8 @@ def install(self, spec, prefix):
|
||||||
make("install")
|
make("install")
|
||||||
|
|
||||||
def setup_dependent_environment(self, module, spec, dependent_spec):
|
def setup_dependent_environment(self, module, spec, dependent_spec):
|
||||||
# TODO treat OS that are not Linux...
|
lib_dsuffix = '.dylib' if sys.platform == 'darwin' else '.so'
|
||||||
lib_suffix = '.so' if '+shared' in spec['scalapack'] else '.a'
|
lib_suffix = lib_dsuffix if '+shared' in spec['scalapack'] else '.a'
|
||||||
|
|
||||||
spec['scalapack'].fc_link = '-L%s -lscalapack' % spec['scalapack'].prefix.lib
|
spec['scalapack'].fc_link = '-L%s -lscalapack' % spec['scalapack'].prefix.lib
|
||||||
spec['scalapack'].cc_link = spec['scalapack'].fc_link
|
spec['scalapack'].cc_link = spec['scalapack'].fc_link
|
||||||
|
|
Loading…
Reference in a new issue