Update readline package for NVIDIA compilers (#23019)
Co-authored-by: Scott McMillan <smcmillan@nvidia.com>
This commit is contained in:
parent
c69b750a52
commit
212d33ecda
@ -30,3 +30,11 @@ class Readline(AutotoolsPackage, GNUMirrorPackage):
|
|||||||
|
|
||||||
def build(self, spec, prefix):
|
def build(self, spec, prefix):
|
||||||
make('SHLIB_LIBS=' + spec['ncurses'].libs.ld_flags)
|
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 New Issue
Block a user