* hdf-eos5: Fix issue when linking against hdf5+szip (#23411) Should fix issue #23411 when linking against hdf5+szip Also fix bug if hdf5 does not depend on zlib Reluctantly added payerle as a maintainer
This commit is contained in:
parent
af3ebeeea1
commit
9f8e40e95c
1 changed files with 6 additions and 1 deletions
|
@ -46,6 +46,8 @@ class HdfEos5(AutotoolsPackage):
|
||||||
conflicts('~static', when='~shared',
|
conflicts('~static', when='~shared',
|
||||||
msg='At least one of +static or +shared must be set')
|
msg='At least one of +static or +shared must be set')
|
||||||
|
|
||||||
|
maintainers = ['payerle']
|
||||||
|
|
||||||
# Build dependencies
|
# Build dependencies
|
||||||
depends_on('hdf5+hl')
|
depends_on('hdf5+hl')
|
||||||
|
|
||||||
|
@ -92,7 +94,10 @@ def configure_args(self):
|
||||||
|
|
||||||
# Provide config args for dependencies
|
# Provide config args for dependencies
|
||||||
extra_args.append('--with-hdf5={0}'.format(self.spec['hdf5'].prefix))
|
extra_args.append('--with-hdf5={0}'.format(self.spec['hdf5'].prefix))
|
||||||
if self.spec['zlib']:
|
if 'szip' in self.spec:
|
||||||
|
extra_args.append('--with-szlib={0}'.format(
|
||||||
|
self.spec['libszip'].prefix))
|
||||||
|
if 'zlib' in self.spec:
|
||||||
extra_args.append('--with-zlib={0}'.format(
|
extra_args.append('--with-zlib={0}'.format(
|
||||||
self.spec['zlib'].prefix))
|
self.spec['zlib'].prefix))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue