atlas: fix shared libs; set compilers
This commit is contained in:
parent
6f7e12d49b
commit
4ecf481337
1 changed files with 21 additions and 2 deletions
|
@ -66,9 +66,24 @@ def install(self, spec, prefix):
|
||||||
|
|
||||||
options = []
|
options = []
|
||||||
if '+shared' in spec:
|
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_stage = self.stage[1]
|
||||||
lapack_tarfile = os.path.basename(lapack_stage.fetcher.url)
|
lapack_tarfile = os.path.basename(lapack_stage.fetcher.url)
|
||||||
lapack_tarfile_path = join_path(lapack_stage.path, lapack_tarfile)
|
lapack_tarfile_path = join_path(lapack_stage.path, lapack_tarfile)
|
||||||
|
@ -81,4 +96,8 @@ def install(self, spec, prefix):
|
||||||
make('check')
|
make('check')
|
||||||
make('ptcheck')
|
make('ptcheck')
|
||||||
make('time')
|
make('time')
|
||||||
|
if '+shared' in spec:
|
||||||
|
with working_dir('lib'):
|
||||||
|
make('shared_all')
|
||||||
|
|
||||||
make("install")
|
make("install")
|
||||||
|
|
Loading…
Reference in a new issue