From c6e152efd4e16f6c78f9f8d6f553ef5f29a6f041 Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Sun, 8 Mar 2015 18:58:15 +0000 Subject: [PATCH] Disable __float128 on Solaris - it segfaults when used at program startup (tested solaris 11). --- include/boost/math/tools/config.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/boost/math/tools/config.hpp b/include/boost/math/tools/config.hpp index 4ec5768aa..23cba0c9a 100644 --- a/include/boost/math/tools/config.hpp +++ b/include/boost/math/tools/config.hpp @@ -50,6 +50,10 @@ // are disabled for now. (JM 2012). # define BOOST_MATH_NO_REAL_CONCEPT_TESTS #endif +#ifdef sun +// Any use of __float128 in program startup code causes a segfault (tested JM 2015, Solaris 11). +# define BOOST_MATH_DISABLE_FLOAT128 +#endif #if (defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__)) && ((LDBL_MANT_DIG == 106) || (__LDBL_MANT_DIG__ == 106)) && !defined(BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS) // // Darwin's rather strange "double double" is rather hard to