Add misc hardening flags to the cmake machinery

See https://wiki.debian.org/Hardening#User_Space
This commit is contained in:
moneromooo-monero 2017-12-22 21:48:31 +00:00
parent a0a8706946
commit 776b44f17b
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
9 changed files with 153 additions and 14 deletions

View file

@ -54,3 +54,4 @@ if(${ARCH_WIDTH} EQUAL 32)
target_compile_definitions(lmdb
PUBLIC -DMDB_VL32)
endif()
set_property(TARGET lmdb APPEND PROPERTY COMPILE_FLAGS "-fPIC")

View file

@ -54,4 +54,5 @@ if (BUILD_GUI_DEPS)
ARCHIVE DESTINATION ${lib_folder}
LIBRARY DESTINATION ${lib_folder})
endif()
set_property(TARGET easylogging APPEND PROPERTY COMPILE_FLAGS "-fPIC")