From: Norbert Lange Date: Thu, 19 Sep 2019 15:49:20 +0000 (+0200) Subject: fix build with compilers with default stack-protector enabled X-Git-Tag: v244-rc1~232 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68e70ac2b27dcb5007fc4009553472f0b9700e66;p=thirdparty%2Fsystemd.git fix build with compilers with default stack-protector enabled building systemd fails with a compiler that supports -fstack-protector but does not enable it by default. (will miss several __stack_chk_* symbols). fix this by also adding the switch during linking. Signed-off-by: Norbert Lange --- diff --git a/meson.build b/meson.build index 4ef08a95391..69d06a1bf3c 100644 --- a/meson.build +++ b/meson.build @@ -382,6 +382,7 @@ possible_cc_flags = [ possible_link_flags = [ '-Wl,-z,relro', '-Wl,-z,now', + '-fstack-protector', ] if cc.get_id() == 'clang'