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 /tests | |
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 'tests')
-rw-r--r-- | tests/gtest/cmake/internal_utils.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gtest/cmake/internal_utils.cmake b/tests/gtest/cmake/internal_utils.cmake index 93e6dbb7c..364db5970 100644 --- a/tests/gtest/cmake/internal_utils.cmake +++ b/tests/gtest/cmake/internal_utils.cmake @@ -87,7 +87,7 @@ macro(config_compiler_and_linker) set(cxx_no_exception_flags "-D_HAS_EXCEPTIONS=0") set(cxx_no_rtti_flags "-GR-") elseif (CMAKE_COMPILER_IS_GNUCXX) - set(cxx_base_flags "-Wall -Wshadow") + set(cxx_base_flags "-Wall -Wshadow -fPIC") set(cxx_exception_flags "-fexceptions") set(cxx_no_exception_flags "-fno-exceptions") # Until version 4.3.2, GCC doesn't define a macro to indicate |