# Solaris 7/8 (64-bit) mode is supported as of gm-1.2

# To compile GM for Solaris 7/8 in 64-bit mode.
# assuming the compiler is installed in /usr/opt/SUNWspro

setenv CC  /usr/opt/SUNWspro/bin/cc
setenv CXX /usr/opt/SUNWspro/bin/CC
setenv RANLIB :
setenv AR /usr/ccs/bin/ar
setenv LD /usr/ccs/bin/ld
setenv CFLAGS   "-xarch=v9 -xO3 -w"
setenv CXXFLAGS "-xarch=v9 -xO3 -w -features=anachronisms"
setenv LDFLAGS  "-xarch=v9"
rm -f config.cache
./configure --host=sparc64-sun-solaris2.7
or
./configure --host=sparc64-sun-solaris2.8

------------------------------------------------------------------------
From the Sun Docs:
The following compile line was used to create 64-bit SPARC drivers
provided with the Solaris 8 operating environment:

% cc -D_KERNEL -xcg92 -xarch=v9 -xcode=abs32 -xO3 -c xx1.c

Where -xcg92 refers to the code generator, and the use of -xcode=abs32
leads to more compact code.
------------------------------------------------------------------------


Solaris 7 may have missing symbol (_ex_register64) in C++ compiler's 
library /usr/lib/sparcv9/libCrun.so.1, which cause mapper to fail.
Patch the machine with patch ID# 106300-11 at
<http://sunsolve.sun.com/pub-cgi/findPatch.pl?patchId=106300>.

