netcdf-cxx: add patch to fix macOS build (#34588)

This commit is contained in:
Adam J. Stewart 2022-12-19 04:46:33 -06:00 committed by GitHub
parent c87b251639
commit 05c3cb7cc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- a/configure 2011-09-30 09:34:31.000000000 -0500
+++ b/configure 2022-12-16 22:16:06.250866499 -0600
@@ -2329,7 +2329,7 @@
# Create the VERSION file, which contains the package version from
# AC_INIT.
-echo -n 4.2>VERSION
+echo -n 4.2>VERSION.txt
{ $as_echo "$as_me:${as_lineno-$LINENO}: netCDF-cxx 4.2" >&5

View File

@ -21,6 +21,9 @@ class NetcdfCxx(AutotoolsPackage):
variant("netcdf4", default=True, description="Compile with netCDF4 support")
# https://github.com/Unidata/netcdf-cxx4/pull/112
patch("macos.patch")
@property
def libs(self):
shared = True