diff options
Diffstat (limited to 'var/spack/repos/builtin/packages')
-rw-r--r-- | var/spack/repos/builtin/packages/groff/package.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/groff/package.py b/var/spack/repos/builtin/packages/groff/package.py index 132348295a..a2ccd663ec 100644 --- a/var/spack/repos/builtin/packages/groff/package.py +++ b/var/spack/repos/builtin/packages/groff/package.py @@ -88,3 +88,9 @@ class Groff(AutotoolsPackage, GNUMirrorPackage): if self.spec.satisfies("+x"): dir = join_path(self.prefix.lib, "X11", "app-defaults") env.set_path("XFILESEARCHPATH", dir) + + def flag_handler(self, name, flags): + if name == "cxxflags": + if self.spec.satisfies("%clang@16:"): + flags.append("-Wno-register") + return (flags, None, None) |