| 1 |
#!/bin/sh |
| 2 |
# Copyright (c) 2007 MySQL AB, 2008 Sun Microsystems, Inc. |
| 3 |
# Use is subject to license terms. |
| 4 |
# |
| 5 |
# This program is free software; you can redistribute it and/or modify |
| 6 |
# it under the terms of the GNU General Public License as published by |
| 7 |
# the Free Software Foundation; version 2 of the License. |
| 8 |
# |
| 9 |
# This program is distributed in the hope that it will be useful, |
| 10 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 |
# GNU General Public License for more details. |
| 13 |
# |
| 14 |
# You should have received a copy of the GNU General Public License |
| 15 |
# along with this program; if not, write to the Free Software |
| 16 |
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1335 USA |
| 17 |
|
| 18 |
# See file compile-solaris-amd64 for basic pre-requisites. |
| 19 |
|
| 20 |
# This build uses the Sun Studio compilers (cc, CC), available from: |
| 21 |
# http://developers.sun.com/sunstudio/downloads/index.jsp |
| 22 |
# Note that you may want to apply current patches, as the downloaded version |
| 23 |
# is typically out of date. Download the PKG version if you intend to patch! |
| 24 |
|
| 25 |
# After installing, add /opt/SUNWspro/bin to your $PATH |
| 26 |
|
| 27 |
gmake -k clean || true |
| 28 |
/bin/rm -f */.deps/*.P config.cache |
| 29 |
|
| 30 |
path=`dirname $0` |
| 31 |
. "$path/SETUP.sh" |
| 32 |
|
| 33 |
extra_flags="-m64 -fast -mt -D_FORTEC_ -xbuiltin=%all -xlibmil -xlibmopt -fns=no -xprefetch=auto -xprefetch_level=3" |
| 34 |
extra_configs="$max_configs --with-libevent" |
| 35 |
|
| 36 |
warnings="" |
| 37 |
c_warnings="" |
| 38 |
cxx_warnings="" |
| 39 |
base_cxxflags="-noex" |
| 40 |
|
| 41 |
CC=cc |
| 42 |
CFLAGS="-xstrconst" |
| 43 |
CXX=CC |
| 44 |
LDFLAGS="-lmtmalloc" |
| 45 |
|
| 46 |
. "$path/FINISH.sh" |