summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorTom Payerle <payerle@umd.edu>2020-04-28 10:43:53 -0400
committerGitHub <noreply@github.com>2020-04-28 09:43:53 -0500
commitaec3589679022c658c2f554d3da156a31f7dec02 (patch)
tree6557626d8f7c27627657ef6240e4a0dcbd1ceb62 /var
parent50318e4ee31acb274b6ea8fdcf9918fc4af59ec9 (diff)
downloadspack-aec3589679022c658c2f554d3da156a31f7dec02.tar.gz
spack-aec3589679022c658c2f554d3da156a31f7dec02.tar.bz2
spack-aec3589679022c658c2f554d3da156a31f7dec02.tar.xz
spack-aec3589679022c658c2f554d3da156a31f7dec02.zip
netcdf-c: Patch to support hdf linked against libtirpc (#15994)
If hdf was built with +libtirpc, we need to add -ltirpc to our link flags.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/netcdf-c/package.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/netcdf-c/package.py b/var/spack/repos/builtin/packages/netcdf-c/package.py
index 42c28e5321..62a3a43cbe 100644
--- a/var/spack/repos/builtin/packages/netcdf-c/package.py
+++ b/var/spack/repos/builtin/packages/netcdf-c/package.py
@@ -215,6 +215,9 @@ class NetcdfC(AutotoolsPackage):
if '+szip' in hdf4:
# This should also come from hdf4.libs
libs.append('-lsz')
+ if '+libtirpc' in hdf4:
+ # This should also come from hdf4.libs
+ libs.append('-ltirpc')
# Fortran support
# In version 4.2+, NetCDF-C and NetCDF-Fortran have split.