cctools (package): remove fstack-protector-all for Fujitsu compiler (#17656)

The Fujitsu C compiler does not support the "fstack-protector-all" option.
This commit is contained in:
ketsubouchi 2020-07-24 09:49:37 +09:00 committed by GitHub
parent a88675ffa9
commit 1fe07891e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 = []