mySQL 5.0.11 sources for tomato
[tomato.git] / release / src / router / mysql / BUILD / compile-solaris-amd64
blob970e1a54134ffde8cd8ff1d694b19aa8cb53614f
1 #!/usr/bin/bash
3 # Copyright (C) 2007 MySQL AB
5 # This program is free software; you can redistribute it and/or
6 # modify it under the terms of the GNU Library General Public
7 # License as published by the Free Software Foundation; version 2
8 # of the License.
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 GNU
13 # Library General Public License for more details.
15 # You should have received a copy of the GNU Library General Public
16 # License along with this library; if not, write to the Free
17 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
18 # MA 02110-1301, USA
20 function _find_mysql_root () (
21 while [ "x$PWD" != "x/" ]; do
22 # Check if some directories are present
23 if [ -d BUILD -a -d sql -a -d mysys ]; then
24 echo "$PWD"
25 return 0
27 cd ..
28 done
29 return 1
32 make -k clean || true
33 /bin/rm -f */.deps/*.P config.cache
35 path=`dirname $0`
36 . "$path/autorun.sh"
38 warning_flags="-Wimplicit -Wreturn-type -Wswitch -Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat -Wparentheses -Wsign-compare -Wwrite-strings -Wunused"
39 compiler_flags="-g -O3 -fno-omit-frame-pointer"
41 export CC CXX CFLAGS CXXFLAGS LDFLAGS LIBS
42 CC="gcc"
43 CXX="gcc"
44 CFLAGS="$warning_flags $compiler_flags"
45 CXXFLAGS=""
46 LDFLAGS="-O3 -g -static-libgcc"
47 LIBS=-lmtmalloc
48 root=$(_find_mysql_root)
50 $root/configure \
51 --prefix=/usr/local/mysql \
52 --localstatedir=/usr/local/mysql/data \
53 --libexecdir=/usr/local/mysql/bin \
54 --with-extra-charsets=complex \
55 --enable-thread-safe-client \
56 --enable-local-infile \
57 --with-zlib-dir=bundled \
58 --with-big-tables \
59 --with-readline \
60 --with-archive-storage-engine \
61 --with-named-curses=-lcurses \
62 --with-big-tables \
63 --with-innodb \
64 --with-berkeley-db \
65 --with-example-storage-engine \
66 --with-blackhole-storage-engine \
67 --with-ndbcluster \
68 --with-federated-storage-engine \
69 --with-csv-storage-engine \
70 --with-ssl \
71 --with-embedded-server \
72 --disable-shared