Skip to content

Commit

Permalink
Add static netcdf-c support to nco
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderRichert-NOAA committed Oct 18, 2023
1 parent a1eb085 commit 5fe8c47
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions var/spack/repos/builtin/packages/nco/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ def configure_args(self):
config_args.append("CFLAGS=-O1")
config_args.append("CXXFLAGS=-O1")

ncconfig = which("nc-config")
nc_libs = ncconfig("--static", "--libs", output=str).strip()
config_args.append(f"LIBS={nc_libs}")

return config_args

def setup_build_environment(self, env):
Expand Down

0 comments on commit 5fe8c47

Please sign in to comment.