From: Fabrice Fontaine Date: Thu, 14 Jul 2022 15:49:54 +0000 (+0200) Subject: meson.build: fix build without stack-protector X-Git-Tag: v6.0.0~108^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F4168%2Fhead;p=thirdparty%2Flxc.git meson.build: fix build without stack-protector Move -fstack-protector-strong from possible_cc_flags to possible_link_flags to avoid a build failure on toolchains without ssp Signed-off-by: Fabrice Fontaine --- diff --git a/meson.build b/meson.build index 4ed57a655..a145faf06 100644 --- a/meson.build +++ b/meson.build @@ -177,7 +177,6 @@ possible_cc_flags = [ '-Wstrict-prototypes', '-fno-strict-aliasing', '-fstack-clash-protection', - '-fstack-protector-strong', '--param=ssp-buffer-size=4', '--mcet -fcf-protection', '-Werror=implicit-function-declaration', @@ -215,6 +214,7 @@ possible_link_flags = [ '-Wl,-z,now', '-Wl,-fuse-ld=gold', '-fstack-protector', + '-fstack-protector-strong', ] if sanitize == 'none'