Update readline package for NVIDIA compilers (#23019)
Co-authored-by: Scott McMillan <smcmillan@nvidia.com>
This commit is contained in:
parent
c69b750a52
commit
212d33ecda
1 changed files with 8 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue