diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-12-22 21:48:31 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-12-31 14:26:12 +0000 |
commit | 776b44f17b44b92b08f8cc37ec87e74ac68762ea (patch) | |
tree | a2ef598f0454073e7e903b238a817ab755ae4acb /external | |
parent | Merge pull request #2955 (diff) | |
download | monero-776b44f17b44b92b08f8cc37ec87e74ac68762ea.tar.xz |
Add misc hardening flags to the cmake machinery
See https://wiki.debian.org/Hardening#User_Space
Diffstat (limited to 'external')
-rw-r--r-- | external/db_drivers/liblmdb/CMakeLists.txt | 1 | ||||
-rw-r--r-- | external/easylogging++/CMakeLists.txt | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/external/db_drivers/liblmdb/CMakeLists.txt b/external/db_drivers/liblmdb/CMakeLists.txt index d3d3df6ad..3a09712de 100644 --- a/external/db_drivers/liblmdb/CMakeLists.txt +++ b/external/db_drivers/liblmdb/CMakeLists.txt @@ -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") diff --git a/external/easylogging++/CMakeLists.txt b/external/easylogging++/CMakeLists.txt index 97d0bf571..8fe3fa487 100644 --- a/external/easylogging++/CMakeLists.txt +++ b/external/easylogging++/CMakeLists.txt @@ -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") |