diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/bzip2/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/bzip2/package.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/bzip2/package.py b/var/spack/repos/builtin/packages/bzip2/package.py index 901326258b..d3700a8a40 100644 --- a/var/spack/repos/builtin/packages/bzip2/package.py +++ b/var/spack/repos/builtin/packages/bzip2/package.py @@ -52,9 +52,10 @@ class Bzip2(Package, SourcewarePackage): ) # The Makefiles use GCC flags that are incompatible with PGI - if self.compiler.name == 'pgi': + if self.spec.satisfies('%pgi') or self.spec.satisfies('%nvhpc'): filter_file('-Wall -Winline', '-Minform=inform', 'Makefile') - filter_file('-Wall -Winline', '-Minform=inform', 'Makefile-libbz2_so') # noqa + filter_file('-Wall -Winline', '-Minform=inform', + 'Makefile-libbz2_so') # Patch the link line to use RPATHs on macOS if 'darwin' in self.spec.architecture: |