summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorDenis Davydov <davydden@gmail.com>2016-07-13 22:07:27 +0200
committerDenis Davydov <davydden@gmail.com>2016-08-02 13:52:32 +0200
commit4ecf481337de9ed92737aa0ce1213070a47debf3 (patch)
tree0a541f9b2f3ae83c794160d380a7df8214c10d5a /var
parent6f7e12d49b65be4e91ff01a857682c6af0782648 (diff)
downloadspack-4ecf481337de9ed92737aa0ce1213070a47debf3.tar.gz
spack-4ecf481337de9ed92737aa0ce1213070a47debf3.tar.bz2
spack-4ecf481337de9ed92737aa0ce1213070a47debf3.tar.xz
spack-4ecf481337de9ed92737aa0ce1213070a47debf3.zip
atlas: fix shared libs; set compilers
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/atlas/package.py23
1 files changed, 21 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/atlas/package.py b/var/spack/repos/builtin/packages/atlas/package.py
index 6e91f21815..662a282548 100644
--- a/var/spack/repos/builtin/packages/atlas/package.py
+++ b/var/spack/repos/builtin/packages/atlas/package.py
@@ -66,9 +66,24 @@ class Atlas(Package):
options = []
if '+shared' in spec:
- options.append('--shared')
+ options.extend([
+ '--shared'
+ ])
+ # TODO: for non GNU add '-Fa', 'alg', '-fPIC' ?
- # Lapack resource
+ # configure for 64-bit build
+ options.extend([
+ '-b', '64'
+ ])
+
+ # set compilers:
+ options.extend([
+ '-C', 'ic', spack_cc,
+ '-C', 'if', spack_f77
+ ])
+
+ # Lapack resource to provide full lapack build. Note that
+ # ATLAS only provides a few LAPACK routines natively.
lapack_stage = self.stage[1]
lapack_tarfile = os.path.basename(lapack_stage.fetcher.url)
lapack_tarfile_path = join_path(lapack_stage.path, lapack_tarfile)
@@ -81,4 +96,8 @@ class Atlas(Package):
make('check')
make('ptcheck')
make('time')
+ if '+shared' in spec:
+ with working_dir('lib'):
+ make('shared_all')
+
make("install")