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>
This commit is contained in:
Norbert Lange
2019-10-03 12:19:29 +02:00
committed by Zbigniew Jędrzejewski-Szmek
parent de1b29f375
commit 68e70ac2b2
+1
View File
@@ -382,6 +382,7 @@ possible_cc_flags = [
possible_link_flags = [
'-Wl,-z,relro',
'-Wl,-z,now',
'-fstack-protector',
]
if cc.get_id() == 'clang'