#!/usr/bin/sh set -e set -x version=4.1.0-alpha package=mysql fullpkg=${package}-${version} # First time: #rm -rf ${fullpkg} #tar zxvf ${fullpkg}.tar.gz #patch -p0 < ../${fullpkg}.diff cd ${fullpkg} # make always clean unless fresh extracted & patched source make clean # build me... CFLAGS="-O3" \ CC=gcc \ CXX=gcc \ CXXFLAGS="-O3 -mcpu=pentiumpro -fno-omit-frame-pointer -felide-constructors -fno-exceptions -fno-rtti" \ ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var/mysql/data \ --libexecdir=/usr/sbin \ --with-unix-socket-path=/var/mysql/mysql.sock \ --with-mysqld-user=mysql \ --with-berkeley-db \ --with-innodb \ --with-debug \ --with-mysqld-ldflags=-all-static \ 2>&1 | tee log.configure # This give a thread safe client library , does it work on Cygwin? # --enable-thread-safe-client \ # This is useless unless the server is running stable # --with-embedded-server \ # Are these needed eventually? I tried, but the server seems to be # as unstable as before: # --without-vio --without-openssl \ make 2>&1 | tee log.make make install 2>&1 | tee log.install mkdir -p /var/mysql/data make init-db 2>&1 | tee log.init make test 2>&1 | tee log.test # start the server later manually #cd /usr ; /usr/bin/mysqld_safe & # do the tests (requires perl modules DBI & DBD::mysql) # cd sql-bench #cd /usr/sql-bench ; ./run-all-tests