statically linked libjpeg in libgs.so causes crash in evince
Bug # 15593209

NOTE : This patch will not be pushed upstream, as this only fix
       the way we want to link few libs to ghostscript in Solaris.

--- ghostscript-10.0.0/base/unix-gcc.mak
+++ ghostscript-10.0.0/base/unix-gcc.mak
@@ -242,7 +242,7 @@ # and the version of the library that is
 # You may need to change this if the libpng version changes.
 # See png.mak for more information.
 
-SHARE_LIBPNG=0
+SHARE_LIBPNG=1
 PNGSRCDIR=./libpng
 LIBPNG_NAME=png
 
@@ -257,7 +257,7 @@ LIBTIFF_NAME=tiff
 # Define the directory where the zlib sources are stored.
 # See zlib.mak for more information.
 
-SHARE_ZLIB=0
+SHARE_ZLIB=1
 ZSRCDIR=./zlib
 #ZLIB_NAME=gz
 ZLIB_NAME=z