netcdf: fix darwin and more broadly clang builds

This commit is contained in:
Mathew Polzin
2024-07-28 09:55:43 -05:00
parent 038fb464fc
commit fa0b3b9392
@@ -52,6 +52,11 @@ in stdenv.mkDerivation rec {
inherit mpiSupport mpi;
};
env.NIX_CFLAGS_COMPILE =
# Suppress incompatible function pointer errors when building with newer versions of clang 16.
# tracked upstream here: https://github.com/Unidata/netcdf-c/issues/2715
lib.optionalString stdenv.cc.isClang "-Wno-error=incompatible-function-pointer-types";
configureFlags = [
"--enable-netcdf-4"
"--enable-dap"