From b582eacbc13a1d6ca10882088d150b5a8d410fdd Mon Sep 17 00:00:00 2001 From: Thomas-Ulrich Date: Tue, 22 Oct 2024 04:44:14 +0200 Subject: fix unzip%nvhpc (#47109) --- var/spack/repos/builtin/packages/unzip/package.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'var') diff --git a/var/spack/repos/builtin/packages/unzip/package.py b/var/spack/repos/builtin/packages/unzip/package.py index 8616b3630d..f04dee4f8c 100644 --- a/var/spack/repos/builtin/packages/unzip/package.py +++ b/var/spack/repos/builtin/packages/unzip/package.py @@ -28,8 +28,9 @@ class Unzip(MakefilePackage): make_args = ["-f", join_path("unix", "Makefile")] cflags = [] - cflags.append("-Wno-error=implicit-function-declaration") - cflags.append("-Wno-error=implicit-int") + if not self.spec.satisfies("%nvhpc"): + cflags.append("-Wno-error=implicit-function-declaration") + cflags.append("-Wno-error=implicit-int") cflags.append("-DLARGE_FILE_SUPPORT") make_args.append(f"LOC={' '.join(cflags)}") -- cgit v1.2.3-70-g09d2