summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Pintarelli <1237199+simonpintarelli@users.noreply.github.com>2020-08-27 14:45:55 +0200
committerGitHub <noreply@github.com>2020-08-27 07:45:55 -0500
commit22329c4f92cf388618479988e43168c5eb751686 (patch)
treec8c0f09a50999a7e91642101619f9e477f361f86
parent7fd8f74c2388ea3a8f0e0797afd72cc08371f449 (diff)
downloadspack-22329c4f92cf388618479988e43168c5eb751686.tar.gz
spack-22329c4f92cf388618479988e43168c5eb751686.tar.bz2
spack-22329c4f92cf388618479988e43168c5eb751686.tar.xz
spack-22329c4f92cf388618479988e43168c5eb751686.zip
sirius, q-e-sirius (#18286)
* sirius: fix bug in shared spec make +shared the default * q-e-sirius: depend on sirius+shared, fix gcc@10 - add missing whitespace in -fallow-argument-mismatch. - require sirius+shared
-rw-r--r--var/spack/repos/builtin/packages/q-e-sirius/package.py5
-rw-r--r--var/spack/repos/builtin/packages/sirius/package.py5
2 files changed, 4 insertions, 6 deletions
diff --git a/var/spack/repos/builtin/packages/q-e-sirius/package.py b/var/spack/repos/builtin/packages/q-e-sirius/package.py
index 7eed92f5d4..115b9def07 100644
--- a/var/spack/repos/builtin/packages/q-e-sirius/package.py
+++ b/var/spack/repos/builtin/packages/q-e-sirius/package.py
@@ -57,7 +57,7 @@ class QESirius(Package):
depends_on('blas')
depends_on('lapack')
depends_on('fftw-api@3')
- depends_on('sirius+fortran')
+ depends_on('sirius+fortran+shared')
depends_on('mpi', when='+mpi')
depends_on('scalapack', when='+scalapack+mpi')
depends_on('elpa+openmp', when='+elpa+openmp')
@@ -172,7 +172,6 @@ class QESirius(Package):
options = ['-prefix={0}'.format(prefix_path)]
sirius = spec['sirius']
-
options.append('LIBS={0}'.format(sirius.libs[0]))
options.append('LD_LIBS={0}'.format(sirius.libs[0]))
@@ -203,7 +202,7 @@ class QESirius(Package):
f90flags = 'F90FLAGS=-cpp -I {0}/sirius'.format(header_dir)
if self.spec.satisfies('%gcc@10:'):
- f90flags += '-fallow-argument-mismatch'
+ f90flags += ' -fallow-argument-mismatch'
options.append(f90flags)
diff --git a/var/spack/repos/builtin/packages/sirius/package.py b/var/spack/repos/builtin/packages/sirius/package.py
index 08ea866b56..4576876884 100644
--- a/var/spack/repos/builtin/packages/sirius/package.py
+++ b/var/spack/repos/builtin/packages/sirius/package.py
@@ -44,7 +44,7 @@ class Sirius(CMakePackage, CudaPackage):
'gfx1011', 'gfx1012'
)
- variant('shared', default=False, description="Build shared libraries")
+ variant('shared', default=True, description="Build shared libraries")
variant('openmp', default=True, description="Build with OpenMP support")
variant('fortran', default=False, description="Build Fortran bindings")
variant('python', default=False, description="Build Python bindings")
@@ -161,8 +161,7 @@ class Sirius(CMakePackage, CudaPackage):
_def('+rocm')
]
- if '@:6.2.999' in self.spec:
- args += [_def('+shared', 'BUILD_SHARED_LIBS')]
+ args += [_def('+shared', 'BUILD_SHARED_LIBS')]
lapack = spec['lapack']
blas = spec['blas']