diff options
author | Norbert Lange <norbert.lange@andritz.com> | 2019-09-19 17:49:20 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2019-10-03 12:19:29 +0200 |
commit | 68e70ac2b27dcb5007fc4009553472f0b9700e66 (patch) | |
tree | c53f87d2f0e4c34d30a0a4d58a2beae8084c32d2 | |
parent | de1b29f375b13b0566814517bf81e3cdbdd9a610 (diff) | |
download | systemd-68e70ac2b27dcb5007fc4009553472f0b9700e66.tar.gz |
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 <nolange79@gmail.com>
-rw-r--r-- | meson.build | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meson.build b/meson.build index 4ef08a9539..69d06a1bf3 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' |