Use -xcode=pic32 for SunPro. Will backport to 2.4.
diff --git a/configure.in b/configure.in
index 811b6b2..8f7dd8c 100644
--- a/configure.in
+++ b/configure.in
@@ -1410,6 +1410,7 @@
 	case $ac_sys_system/$ac_sys_release in
 	SunOS*) if test "$GCC" = yes;
 	        then CCSHARED="-fPIC";
+		else CCSHARED="-xcode=pic32";
 	        fi;;
 	hp*|HP*) if test "$GCC" = yes;
 		 then CCSHARED="-fPIC";