diff options
-rw-r--r-- | var/spack/repos/builtin/packages/readline/package.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/readline/package.py b/var/spack/repos/builtin/packages/readline/package.py index 2edb50317e..c092b26b8d 100644 --- a/var/spack/repos/builtin/packages/readline/package.py +++ b/var/spack/repos/builtin/packages/readline/package.py @@ -30,3 +30,11 @@ class Readline(AutotoolsPackage, GNUMirrorPackage): def build(self, spec, prefix): make('SHLIB_LIBS=' + spec['ncurses'].libs.ld_flags) + + def patch(self): + # Remove flags not recognized by the NVIDIA compiler + if self.spec.satisfies('%nvhpc'): + filter_file('${GCC+-Wno-parentheses}', '', 'configure', + string=True) + filter_file('${GCC+-Wno-format-security}', '', 'configure', + string=True) |