Skip to content

Commit

Permalink
samrai: add "--enable-shared" option as "+shared" (spack#28695)
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanjude authored Feb 1, 2022
1 parent a4a23ff commit aedb106
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions var/spack/repos/builtin/packages/samrai/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ class Samrai(AutotoolsPackage):
description='Compile with reduced optimization and debugging on')
variant('silo', default=False,
description='Compile with support for silo')
variant('shared', default=False,
description='Build shared libraries')

depends_on('mpi')
depends_on('zlib')
Expand Down Expand Up @@ -91,6 +93,9 @@ def configure_args(self):
if '+silo' in self.spec:
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'):
options.append('--with-boost=%s' % self.spec['boost'].prefix)

Expand Down

0 comments on commit aedb106

Please sign in to comment.