~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

Viewing changes to BUILD/compile-solaris-sparc-forte

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
 
 
3
# Assume Forte is installed in /opt/SUNWSpro and ld is installed in
 
4
# /usr/ccs/bin
 
5
 
 
6
PATH=/opt/SUNWspro/bin:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin:$PATH
 
7
 
 
8
prefix="/usr/local/mysql"
 
9
if test -n "$MYSQL_BUILD_PREFIX"
 
10
then
 
11
  prefix="$MYSQL_BUILD_PREFIX"
 
12
fi
 
13
 
 
14
make -k maintainer-clean || true
 
15
/bin/rm -f */.deps/*.P config.cache
 
16
 
 
17
path=`dirname $0`
 
18
. "$path/autorun.sh"
 
19
 
 
20
# For "optimal" code for this computer add -fast to EXTRA
 
21
# To compile 32/64 bit, uncomment/comment EXTRA_64_BIT
 
22
 
 
23
EXTRA_64_BIT="-m64"
 
24
EXTRA="-fast"                   # Remove comment to target current machine
 
25
 
 
26
#
 
27
# The following should not need to be touched
 
28
#
 
29
 
 
30
STD="-mt -D_FORTEC_ $EXTRA $EXTRA_64_BIT"
 
31
CC=cc-5.0 CFLAGS="-Xa -xstrconst $STD" \
 
32
CXX=CC CXXFLAGS="-noex $STD" LIBS="-lmtmalloc" \
 
33
./configure --prefix=/usr/local/mysql --enable-assembler --with-extra-charsets=complex --enable-thread-safe-client --prefix=$PREFIX
 
34
 
 
35
make -j 4
 
36
if [ $? = 0 ]
 
37
then
 
38
  make test
 
39
fi