blob: f957f33b619c748c7bef684c909185c2b971e0de (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
Don't override Gentoo's default _FORTIFY_SOURCE.
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -433,7 +433,7 @@ if (ENABLE_ASAN OR ENABLE_UBSAN)
endif()
# try to ensure some compiler sanity and hardening options where supported
-foreach (flag -fno-strict-overflow -fno-delete-null-pointer-checks -fhardened)
+foreach (flag -fno-strict-overflow -fno-delete-null-pointer-checks)
check_c_compiler_flag(${flag} compiler-supports${flag})
if (compiler-supports${flag})
add_compile_options(${flag})
|