| 1 |
#!/bin/sh |
| 2 |
|
| 3 |
# See file compile-solaris-amd64 for basic pre-requisites. |
| 4 |
|
| 5 |
# This build uses the Sun Studio compilers (cc, CC), available from: |
| 6 |
# http://developers.sun.com/sunstudio/downloads/index.jsp |
| 7 |
# Note that you may want to apply current patches, as the downloaded version |
| 8 |
# is typically out of date. Download the PKG version if you intend to patch! |
| 9 |
|
| 10 |
# After installing, add /opt/SUNWspro/bin to your $PATH |
| 11 |
|
| 12 |
|
| 13 |
gmake -k clean || true |
| 14 |
/bin/rm -f */.deps/*.P config.cache |
| 15 |
|
| 16 |
. "$path/SETUP.sh" |
| 17 |
|
| 18 |
extra_flags="-g -m64 -mt -D_FORTEC_ -xbuiltin=%all -xlibmil -xlibmopt -fns=no -xprefetch=auto -xprefetch_level=3" |
| 19 |
extra_configs="$max_configs --with-libevent" |
| 20 |
|
| 21 |
warnings="" |
| 22 |
c_warnings="" |
| 23 |
cxx_warnings="" |
| 24 |
base_cxxflags="-noex" |
| 25 |
|
| 26 |
CC=cc |
| 27 |
CFLAGS="-xstrconst" |
| 28 |
CXX=CC |
| 29 |
LDFLAGS="-lmtmalloc" |
| 30 |
|
| 31 |
. "$path/FINISH.sh" |