mySQL 5.0.11 sources for tomato
[tomato.git] / release / src / router / mysql / BUILD / compile-solaris-sparc-forte
blob14cb3ce1ff9a616e4020a46887155bbefa9ff527
1 #! /bin/sh
3 # Copyright (c) 2001, 2002, 2005, 2007 MySQL AB, 2008 Sun Microsystems, Inc.
4 # Use is subject to license terms.
5 #
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; version 2 of the License.
9 #
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 # Assume Forte is installed in /opt/SUNWSpro and ld is installed in
20 # /usr/ccs/bin
22 PATH=/opt/SUNWspro/bin:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin:$PATH
24 prefix="/usr/local/mysql"
25 if test -n "$MYSQL_BUILD_PREFIX"
26 then
27 prefix="$MYSQL_BUILD_PREFIX"
30 make -k maintainer-clean || true
31 /bin/rm -f */.deps/*.P config.cache
33 path=`dirname $0`
34 . "$path/autorun.sh"
36 # For "optimal" code for this computer add -fast to EXTRA
37 # To compile 32/64 bit, uncomment/comment EXTRA_64_BIT
39 EXTRA_64_BIT="-m64"
40 EXTRA="-fast" # Remove comment to target current machine
43 # The following should not need to be touched
46 STD="-mt -D_FORTEC_ $EXTRA $EXTRA_64_BIT"
47 CC=cc-5.0 CFLAGS="-Xa -xstrconst $STD" \
48 CXX=CC CXXFLAGS="-noex $STD" LIBS="-lmtmalloc" \
49 ./configure --prefix=/usr/local/mysql --enable-assembler --with-extra-charsets=complex --enable-thread-safe-client --prefix=$PREFIX
51 make -j 4
52 if [ $? = 0 ]
53 then
54 make test