Commit 4f40b9f7 authored by Max Kellermann's avatar Max Kellermann

meson.build: disable ld.so lazy binding and enable relro

Since MPD is a long-running daemon, it doesn't make sense to use dynamic binding. That allows the relocations to be read-only ("relro"), which a hardening feature.
parent bb009daf
......@@ -96,6 +96,11 @@ test_cflags = test_common_flags + [
]
test_ldflags = [
# make relocations read-only (hardening)
'-Wl,-z,relro',
# no lazy binding, please - not worth it for a daemon
'-Wl,-z,now',
]
if get_option('buildtype') != 'debug'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment