samrai: add "--enable-shared" option as "+shared" (#28695)
This commit is contained in:
parent
a4a23ff713
commit
aedb106c5f
@ -44,6 +44,8 @@ class Samrai(AutotoolsPackage):
|
|||||||
description='Compile with reduced optimization and debugging on')
|
description='Compile with reduced optimization and debugging on')
|
||||||
variant('silo', default=False,
|
variant('silo', default=False,
|
||||||
description='Compile with support for silo')
|
description='Compile with support for silo')
|
||||||
|
variant('shared', default=False,
|
||||||
|
description='Build shared libraries')
|
||||||
|
|
||||||
depends_on('mpi')
|
depends_on('mpi')
|
||||||
depends_on('zlib')
|
depends_on('zlib')
|
||||||
@ -91,6 +93,9 @@ def configure_args(self):
|
|||||||
if '+silo' in self.spec:
|
if '+silo' in self.spec:
|
||||||
options.append('--with-silo=%s' % self.spec['silo'].prefix)
|
options.append('--with-silo=%s' % self.spec['silo'].prefix)
|
||||||
|
|
||||||
|
if '+shared' in self.spec:
|
||||||
|
options.append('--enable-shared')
|
||||||
|
|
||||||
if self.spec.satisfies('@3.0:3.11'):
|
if self.spec.satisfies('@3.0:3.11'):
|
||||||
options.append('--with-boost=%s' % self.spec['boost'].prefix)
|
options.append('--with-boost=%s' % self.spec['boost'].prefix)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user