add -ldl to silo ldflags when building with static hdf5 in order to fix #7384 (#7385)

This commit is contained in:
Mike Pozulp 2018-03-05 04:28:37 -08:00 committed by Massimiliano Culpo
parent d59ee8d07d
commit 90c8243113

View file

@ -48,6 +48,11 @@ class Silo(Package):
patch('remove-mpiposix.patch', when='@4.8:4.10.2')
def flag_handler(self, name, flags):
if name == 'ldflags' and self.spec['hdf5'].satisfies('~shared'):
flags.append('-ldl')
return (flags, None, None)
def install(self, spec, prefix):
config_args = [
'--enable-fortran' if '+fortran' in spec else '--disable-fortran',