Add potential workaround for Solaris SIGBUS

pull/394/merge
Jeffrey Walton 2017-04-22 00:05:55 -04:00
parent 8ded8bc38d
commit c25edcaff3
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
1 changed files with 5 additions and 0 deletions

View File

@ -237,6 +237,11 @@ if ((NOT CRYPTOPP_CROSS_COMPILE) AND "${UNAME_SYSTEM}" STREQUAL "SunOS")
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "SunPro") if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "SunPro")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -template=no%extdef") SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -template=no%extdef")
endif() 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() endif()
# Link is driven through the compiler, but CXXFLAGS are not used. Also see # Link is driven through the compiler, but CXXFLAGS are not used. Also see