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.
This commit is contained in:
Tom Payerle 2020-04-28 10:43:53 -04:00 committed by GitHub
parent 50318e4ee3
commit aec3589679
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -215,6 +215,9 @@ def configure_args(self):
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.