From c25edcaff36fee6e6990d8ea8953a46e16cd31ae Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sat, 22 Apr 2017 00:05:55 -0400 Subject: [PATCH] Add potential workaround for Solaris SIGBUS --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 327395a1..02b53a27 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -237,6 +237,11 @@ if ((NOT CRYPTOPP_CROSS_COMPILE) AND "${UNAME_SYSTEM}" STREQUAL "SunOS") if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "SunPro") SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -template=no%extdef") endif() + + # Try this if you are encountering unexplained SIGBUS'es + # even when DBX reports the memory is aligned. + # SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -xmemalign=8i") + endif() # Link is driven through the compiler, but CXXFLAGS are not used. Also see