6d8727
diff --git a/cmake/modules/BuildBoost.cmake b/cmake/modules/BuildBoost.cmake
6d8727
index 2e92132366..3cb1e3d958 100644
6d8727
--- a/cmake/modules/BuildBoost.cmake
6d8727
+++ b/cmake/modules/BuildBoost.cmake
6d8727
@@ -62,7 +62,7 @@ function(do_build_boost version)
6d8727
   else()
6d8727
     list(APPEND boost_features "address-model=32")
6d8727
   endif()
6d8727
-  set(BOOST_CXXFLAGS "-fPIC -w") # check on arm, etc <---XXX
6d8727
+  set(BOOST_CXXFLAGS "-fPIC -w -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -ftemplate-depth-1024 -fno-new-ttp-matching -fno-builtin-malloc -fno-builtin-calloc -fno-builtin-realloc -fno-builtin-free") # check on arm, etc <---XXX
6d8727
   list(APPEND boost_features "cxxflags=${BOOST_CXXFLAGS}")
6d8727
 
6d8727
   set(boost_with_libs)