From 1fe07891e3404a53ba57f7831c6b3764a5da961f Mon Sep 17 00:00:00 2001 From: ketsubouchi <67359246+ketsubouchi@users.noreply.github.com> Date: Fri, 24 Jul 2020 09:49:37 +0900 Subject: [PATCH] cctools (package): remove fstack-protector-all for Fujitsu compiler (#17656) The Fujitsu C compiler does not support the "fstack-protector-all" option. --- var/spack/repos/builtin/packages/cctools/package.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/var/spack/repos/builtin/packages/cctools/package.py b/var/spack/repos/builtin/packages/cctools/package.py index ade997bbb8..b92bc65187 100644 --- a/var/spack/repos/builtin/packages/cctools/package.py +++ b/var/spack/repos/builtin/packages/cctools/package.py @@ -45,6 +45,10 @@ def patch(self): f = 'dttools/src/memfdexe.c' kwargs = {'ignore_absent': False, 'backup': True, 'string': True} filter_file(before, after, f, **kwargs) + if self.spec.satisfies('%fj'): + makefiles = ['chirp/src/Makefile', 'grow/src/Makefile'] + for m in makefiles: + filter_file('-fstack-protector-all', '', m) def configure_args(self): args = []