From: Fabrice Fontaine Date: Thu, 14 Jul 2022 15:49:54 +0000 (+0200) Subject: meson.build: fix build without stack-protector X-Git-Tag: lxc-5.0.1~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=315d4cec61513241334dfec708100501e08019f4;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 bccbd74ec..223d5b5b9 100644 --- a/meson.build +++ b/meson.build @@ -176,7 +176,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', @@ -214,6 +213,7 @@ possible_link_flags = [ '-Wl,-z,now', '-Wl,-fuse-ld=gold', '-fstack-protector', + '-fstack-protector-strong', ] if sanitize == 'none'