Did SunOS (before 5, i.e. BSD based) or did it come with Solaris (SunOS 5, SystemV based)? I honestly don't remember. I do remember that Interactive Unix around '92 (later bought by SUN to enhance their x86 port) did not support shared libraries, when Linux did. And yes, that was a big deal back then.
I remember shared libraries on SunOS 4.x. SunOS 4.x was retroactively renamed to Solaris 1 sometime around the first Solaris 2 (SunOS 5.x) release. I ran it on both a Sun 3/60 and a Sparc. Up until Solaris 2.4 or so, most folks still preferred the older SunOS.