diff options
author | alalazo <massimiliano.culpo@googlemail.com> | 2016-03-21 09:46:49 +0100 |
---|---|---|
committer | alalazo <massimiliano.culpo@googlemail.com> | 2016-03-21 09:46:49 +0100 |
commit | fbeffee91e115ea3f332a321441df7655adbf5b2 (patch) | |
tree | ff2e691bd230c91178ae82401ec1ef05210218f4 /var/spack/repos/builtin/packages/netlib-scalapack | |
parent | aef6d50b08daf893174046ba14c09a7019fe1212 (diff) | |
parent | c0f03506345199c71cc38f5fece3181ba32adad8 (diff) | |
download | spack-fbeffee91e115ea3f332a321441df7655adbf5b2.tar.gz spack-fbeffee91e115ea3f332a321441df7655adbf5b2.tar.bz2 spack-fbeffee91e115ea3f332a321441df7655adbf5b2.tar.xz spack-fbeffee91e115ea3f332a321441df7655adbf5b2.zip |
Merge branch 'develop' of https://github.com/LLNL/spack into features/env_objects_flying_around
Conflicts:
lib/spack/spack/package.py
var/spack/repos/builtin/packages/netlib-scalapack/package.py
Diffstat (limited to 'var/spack/repos/builtin/packages/netlib-scalapack')
-rw-r--r-- | var/spack/repos/builtin/packages/netlib-scalapack/package.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/var/spack/repos/builtin/packages/netlib-scalapack/package.py b/var/spack/repos/builtin/packages/netlib-scalapack/package.py index 7e7e5b2e2e..36f506f7cd 100644 --- a/var/spack/repos/builtin/packages/netlib-scalapack/package.py +++ b/var/spack/repos/builtin/packages/netlib-scalapack/package.py @@ -2,7 +2,7 @@ from spack import * class NetlibScalapack(Package): """ScaLAPACK is a library of high-performance linear algebra routines for parallel distributed memory machines""" - + homepage = "http://www.netlib.org/scalapack/" url = "http://www.netlib.org/scalapack/scalapack-2.0.2.tgz" @@ -32,17 +32,17 @@ class NetlibScalapack(Package): "-DCMAKE_C_FLAGS=-fPIC", "-DCMAKE_Fortran_FLAGS=-fPIC" ]) - + options.extend(std_cmake_args) - + with working_dir('spack-build', create=True): cmake('..', *options) make() make("install") def modify_module(self, module, spec, dependent_spec): - # TODO treat OS that are not Linux... - lib_suffix = '.so' if '+shared' in spec['scalapack'] else '.a' + lib_dsuffix = '.dylib' if sys.platform == 'darwin' else '.so' + lib_suffix = lib_dsuffix if '+shared' in spec['scalapack'] else '.a' spec['scalapack'].fc_link = '-L%s -lscalapack' % spec['scalapack'].prefix.lib spec['scalapack'].cc_link = spec['scalapack'].fc_link |