diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -44,6 +44,7 @@ add_compiler_flag(-fPIE) add_linker_flag(-pie) endif() + add_linker_flag(-Wl,-z,relro -Wl,-z,now) endif() # Enable warning