This patch was developed in-house.  We have not yet decided whether to offer
it upstream or not.

--- Python-3.7.5/configure.ac
+++ Python-3.7.5/configure.ac
@@ -4744,7 +4744,7 @@ AC_MSG_RESULT($SOABI)
 
 AC_SUBST(EXT_SUFFIX)
 case $ac_sys_system in
-    Linux*|GNU*|Darwin)
+    Linux*|GNU*|Darwin|SunOS)
 	EXT_SUFFIX=.${SOABI}${SHLIB_SUFFIX};;
     *)
 	EXT_SUFFIX=${SHLIB_SUFFIX};;