diff --git a/include/boost/python/detail/config.hpp b/include/boost/python/detail/config.hpp index 8b8bea42..c0cb41e2 100644 --- a/include/boost/python/detail/config.hpp +++ b/include/boost/python/detail/config.hpp @@ -81,7 +81,9 @@ # define BOOST_PYTHON_STATIC_LINK #endif -#if defined(__MWERKS__) +#if defined(__MWERKS__) \ + || (defined(__DECCXX_VER) && __DECCXX_VER <= 60590002) \ + || (defined(__sgi) && defined(_COMPILER_VERSION) && _COMPILER_VERSION <= 730) # define BOOST_PYTHON_NO_TEMPLATE_EXPORT #endif