]> git.ipfire.org Git - thirdparty/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)
committerStéphane Graber <stgraber@ubuntu.com>
Mon, 25 Jul 2022 22:12:45 +0000 (18:12 -0400)
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 bccbd74ec52b32ca1c5c516da5545c3122d0fe1e..223d5b5b9b25aecf87b194b38d02b03c6b46b07b 100644 (file)
@@ -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'