Truly independent web browser
Meta: Undefine _FORTIFY_SOURCE before defining it
sideshowbarkerd4c4269b74ab
diff --git a/Meta/CMake/compile_options.cmake b/Meta/CMake/compile_options.cmakeindex 2c63f58c07d..eeb5e321454 100644--- a/Meta/CMake/compile_options.cmake+++ b/Meta/CMake/compile_options.cmake@@ -225,7 +225,8 @@ endif()include(CheckCXXSourceCompiles)if (LINUX)- add_cxx_compile_definitions(_FORTIFY_SOURCE=3)+ # Some distributions' compilers define _FORTIFY_SOURCE themselves, and a different value than ours is an error.+ add_cxx_compile_options(-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3)add_cxx_compile_definitions(_FILE_OFFSET_BITS=64)add_cxx_compile_options(-fstack-clash-protection)add_cxx_link_option_if_supported(LINKER:-z,relro)