diff --git a/var/spack/repos/builtin/packages/libxslt/package.py b/var/spack/repos/builtin/packages/libxslt/package.py index c42240f303b..cecd64d4776 100644 --- a/var/spack/repos/builtin/packages/libxslt/package.py +++ b/var/spack/repos/builtin/packages/libxslt/package.py @@ -57,3 +57,8 @@ def import_module_test(self): if '+python' in self.spec: with working_dir('spack-test', create=True): python('-c', 'import libxslt') + + def patch(self): + # Remove flags not recognized by the NVIDIA compiler + if self.spec.satisfies('%nvhpc'): + filter_file('-Wmissing-format-attribute', '', 'configure')