Sun Studio recipes


git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@120 632fc199-4ca6-4c93-a231-07263d6284db
diff --git a/BUILDING.txt b/BUILDING.txt
index 25ce457..e96bcef 100644
--- a/BUILDING.txt
+++ b/BUILDING.txt
@@ -112,7 +112,7 @@
 32-bit Library Build on 64-bit Linux
 ------------------------------------
 
-Same instructions as above, but add
+Add
 
   --host i686-pc-linux-gnu CFLAGS='-O3 -m32' CXXFLAGS='-O3 -m32'
 
@@ -122,7 +122,7 @@
 64-bit Library Build on 64-bit OS/X
 -----------------------------------
 
-Same instructions as above, but add
+Add
 
   --host x86_64-apple-darwin10.0.0 NASM=/opt/local/bin/nasm
 
@@ -132,7 +132,7 @@
 32-bit Library Build on 64-bit OS/X
 -----------------------------------
 
-Same instructions as above, but add
+Add
 
   CFLAGS='-O3 -m32' CXXFLAGS='-O3 -m32' LDFLAGS=-m32
 
@@ -142,7 +142,7 @@
 32-bit Backward-Compatible Library Build on 64-bit OS/X
 -------------------------------------------------------
 
-Same instructions as above, but add
+Add
 
   CC=gcc-4.0 CXX=g++-4.0 CFLAGS='-isysroot /Developer/SDKs/MacOSX10.4u.sdk \
     -mmacosx-version-min=10.4 -O3 -m32' CXXFLAGS='-isysroot \
@@ -156,7 +156,7 @@
 64-bit Library Build on 64-bit Solaris
 --------------------------------------
 
-Same instructions as above, but add
+Add
 
   --host x86_64-pc-solaris CFLAGS='-O3 -m64' CXXFLAGS='-O3 -m64' LDFLAGS=-m64
 
@@ -166,7 +166,7 @@
 MinGW Build on Cygwin
 ---------------------
 
-Same instructions as above, but add
+Add
 
   --host mingw32
 
@@ -174,6 +174,23 @@
 depend on cygwin1.dll or other Cygwin DLL's.
 
 
+Sun Studio
+----------
+
+Add
+
+  CC=cc CXX=CC
+
+to the configure command line.  libjpeg-turbo will automatically be built with
+the maximum optimization level (-xO5) unless you override CFLAGS and CXXFLAGS.
+
+To build a 64-bit version of libjpeg-turbo using Sun Studio, add
+
+  --host x86_64-pc-solaris CC=cc CXX=CC CFLAGS='-xO5 -m64' \
+    CXXFLAGS='-xO5 -m64' LDFLAGS=-m64
+
+to the configure command line.
+
 *******************************************************************************
 **     Windows (Visual C++)
 *******************************************************************************