Update readline package for NVIDIA compilers (#23019)

Co-authored-by: Scott McMillan <smcmillan@nvidia.com>
This commit is contained in:
Scott McMillan
2021-04-16 17:37:10 -05:00
committed by GitHub
parent c69b750a52
commit 212d33ecda

View File

@@ -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)