]> git.proxmox.com Git - mirror_lxc.git/commitdiff
meson.build: fix build without stack-protector
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Thu, 14 Jul 2022 15:49:54 +0000 (17:49 +0200)
committerFabrice Fontaine <fontaine.fabrice@gmail.com>
Thu, 14 Jul 2022 15:50:48 +0000 (17:50 +0200)
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 <fontaine.fabrice@gmail.com>
meson.build

index 4ed57a655b28b07a57ca740bbc4b730de9b9d450..a145faf069fb25a2920c6a1205c99a15e5d0775c 100644 (file)
@@ -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'