diff --git a/var/spack/repos/builtin/packages/diffutils/package.py b/var/spack/repos/builtin/packages/diffutils/package.py index b87c9174d9..c8f2dca83f 100644 --- a/var/spack/repos/builtin/packages/diffutils/package.py +++ b/var/spack/repos/builtin/packages/diffutils/package.py @@ -19,3 +19,8 @@ class Diffutils(AutotoolsPackage, GNUMirrorPackage): build_directory = 'spack-build' depends_on('libiconv') + + def setup_build_environment(self, env): + if self.spec.satisfies('%fj'): + env.append_flags('CFLAGS', + '-Qunused-arguments')