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

« back to all changes in this revision

Viewing changes to BUILD/compile-alpha-cxx

  • 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 */.deps/*.P config.cache storage/innobase/config.cache mysql-*.tar.gz
 
7
 
 
8
path=`dirname $0`
 
9
. "$path/autorun.sh"
 
10
 
 
11
CC=ccc CFLAGS="-fast" CXX=cxx CXXFLAGS="-fast -noexceptions -nortti" ./configure --prefix=/usr/local/mysql --disable-shared --with-extra-charsets=complex --enable-thread-safe-client --with-mysqld-ldflags=-non_shared --with-client-ldflags=-non_shared --without-extra-tools --disable-dependency-tracking
 
12
 
 
13
make -j2
 
14
find . -name ".deps" | xargs rm -r 
 
15
make
 
16
if [ $? = 0 ]
 
17
then
 
18
  find . -name ".deps" | xargs rm -r 
 
19
  bin/mysqladmin shutdown
 
20
  sur make install
 
21
  if [ $? = 0 ]
 
22
  then
 
23
     scripts/make_binary_distribution
 
24
  fi
 
25
  make test
 
26
fi
 
27
 
 
28
exit
 
29
 
 
30
# This should give better performance by compiling many files at once, but
 
31
# according to our benchmarks there isn't any real difference.
 
32
 
 
33
pwd=`pwd`
 
34
for i in */make-ccc
 
35
do
 
36
   cd `dirname $i`
 
37
   make-ccc
 
38
   cd $pwd
 
39
done
 
40
cd sql
 
41
rm mysqld .deps/*.P
 
42
make mysqld
 
43
cd $pwd