mirror of
https://github.com/systemd/systemd.git
synced 2025-04-01 18:50:16 +03:00
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:
parent
de1b29f375
commit
68e70ac2b2
@ -382,6 +382,7 @@ possible_cc_flags = [
|
||||
possible_link_flags = [
|
||||
'-Wl,-z,relro',
|
||||
'-Wl,-z,now',
|
||||
'-fstack-protector',
|
||||
]
|
||||
|
||||
if cc.get_id() == 'clang'
|
||||
|
Loading…
x
Reference in New Issue
Block a user