silo: force autoreconf when building share libs (#24388)
This commit is contained in:
parent
2bd2ef27a2
commit
f5ef532bdc
@ -35,6 +35,9 @@ class Silo(AutotoolsPackage):
|
||||
variant('fpzip', default=True,
|
||||
description='Enable fpzip support')
|
||||
|
||||
depends_on('autoconf', type='build', when='+shared')
|
||||
depends_on('automake', type='build', when='+shared')
|
||||
depends_on('libtool', type='build', when='+shared')
|
||||
depends_on('mpi', when='+mpi')
|
||||
depends_on('hdf5@:1.10.999', when='@:4.10.2+hdf5')
|
||||
depends_on('hdf5~mpi', when='~mpi+hdf5')
|
||||
@ -103,6 +106,12 @@ def repl(match):
|
||||
|
||||
filter_file(r'\b(DOMAIN|RANGE|UNION)\b', repl, *files_to_filter)
|
||||
|
||||
@property
|
||||
def force_autoreconf(self):
|
||||
# Update autoconf's tests whether libtool supports shared libraries.
|
||||
# (Otherwise, shared libraries are always disabled on Darwin.)
|
||||
return self.spec.satisfies('+shared')
|
||||
|
||||
def configure_args(self):
|
||||
spec = self.spec
|
||||
config_args = [
|
||||
|
Loading…
Reference in New Issue
Block a user