This is the new patch for OpenSolaris 130, zlib need to be described in LIB variable.

<pre>

--- Makefile.orig       2009-12-29 13:20:21.449765912 -0600
+++ Makefile    2009-12-29 14:27:05.946202215 -0600
@@ -35,10 +35,8 @@
 #    chroot jail.
 #
 LIB = -lz $(LDFLAGS)
-# If you're on OpenSolaris:
-# LIB += lsocket
-# Solaris 10 needs:
-# LIB += -lsocket -lnsl
+# Solaris 10/OpenSolaris  needs:
+LIB += -lsocket -lnsl
 # My assumption is that the Sol10 flags will work for Sol8/9 and possibly 11.

</pre>

 gcc info on opensolaris 130.

<pre>
gcc -v
Reading specs from
Configured with:
<snip>
-languages=c,c++,f77,objc --enable-shared
Thread model: posix
gcc version 3.4.3 (csl-sol210-3_4-20050802)


</pre>