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

« back to all changes in this revision

Viewing changes to BUILD/compile-alpha-ccc

  • 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
/bin/rm -f */.deps/*.P */*.o
 
4
make -k maintainer-clean
 
5
/bin/rm -f */.deps/*.P */*.o
 
6
/bin/rm -f config.cache mysql-*.tar.gz
 
7
 
 
8
path=`dirname $0`
 
9
. "$path/autorun.sh"
 
10
 
 
11
CC=ccc CFLAGS="-fast -O3 -fomit-frame-pointer" CXX=gcc CXXFLAGS="-O6 -fomit-frame-pointer -felide-constructors -fno-exceptions -fno-rtti -mcpu=ev6 -Wa,-mev6" CXXLDFLAGS='/usr/lib/compaq/libots-2.2.7/libots.so /usr/lib/compaq/cpml-5.0.0/libcpml_ev6.a' ./configure --prefix=/usr/local/mysql --disable-shared --with-extra-charsets=complex --enable-thread-safe-client
 
12
make
 
13
rm */.deps/*
 
14
make
 
15
if [ $? = 0 ]
 
16
then
 
17
  rm */.deps/*
 
18
  bin/mysqladmin shutdown
 
19
  sur make install
 
20
  if [ $? = 0 ]
 
21
  then
 
22
     scripts/make_binary_distribution
 
23
  fi
 
24
fi
 
25
 
 
26
exit
 
27
 
 
28
# This should give better performance by compiling many files at once, but
 
29
# according to our benchmarks there isn't any real difference.
 
30
 
 
31
pwd=`pwd`
 
32
for i in */make-ccc
 
33
do
 
34
   cd `dirname $i`
 
35
   make-ccc
 
36
   cd $pwd
 
37
done
 
38
cd sql
 
39
rm mysqld .deps/*.P
 
40
make mysqld
 
41
cd $pwd