Commit d6333cf5 authored by Rich Prohaska's avatar Rich Prohaska

build debug env for mariadb-5.5.34

parent 0aa72f43
...@@ -51,7 +51,7 @@ function github_clone() { ...@@ -51,7 +51,7 @@ function github_clone() {
git_tag= git_tag=
mysql=mysql mysql=mysql
mysql_tree=5.5.30 mysql_tree=mysql-5.5.34
jemalloc=jemalloc jemalloc=jemalloc
jemalloc_tree=3.3.1 jemalloc_tree=3.3.1
ftengine=ft-engine ftengine=ft-engine
...@@ -77,20 +77,20 @@ while [ $# -ne 0 ] ; do ...@@ -77,20 +77,20 @@ while [ $# -ne 0 ] ; do
done done
# setup environment variables # setup environment variables
install_dir=$PWD/$mysql-install build_dir=$PWD/build
mkdir $build_dir
if [ $? != 0 ] ; then exit 1; fi
install_dir=$PWD/install
mkdir $install_dir mkdir $install_dir
if [ $? != 0 ] ; then exit 1; fi if [ $? != 0 ] ; then exit 1; fi
# checkout the fractal tree # checkout the fractal tree
github_clone $ftindex $ftindex_tree github_clone $ftindex $ftindex_tree
# checkout jemalloc
github_clone $jemalloc $jemalloc_tree github_clone $jemalloc $jemalloc_tree
pushd $ftindex/third_party
if [ $? != 0 ] ; then exit 1; fi
ln -s ../../$jemalloc $jemalloc
if [ $? != 0 ] ; then exit 1; fi
popd
# checkout mysql' # checkout mysql
github_clone $mysql $mysql_tree github_clone $mysql $mysql_tree
# checkout the community backup # checkout the community backup
...@@ -122,11 +122,21 @@ if [ $? != 0 ] ; then exit 1; fi ...@@ -122,11 +122,21 @@ if [ $? != 0 ] ; then exit 1; fi
ln ../../$ftengine/scripts/tokufilecheck.py ln ../../$ftengine/scripts/tokufilecheck.py
if [ $? != 0 ] ; then exit 1; fi if [ $? != 0 ] ; then exit 1; fi
popd popd
if [[ $mysql =~ mariadb ]] ; then
pushd $mysql/extra
if [ $? != 0 ] ; then exit 1; fi
ln -s ../../$jemalloc $jemalloc
if [ $? != 0 ] ; then exit 1; fi
popd
else
pushd $ftindex/third_party
if [ $? != 0 ] ; then exit 1; fi
ln -s ../../$jemalloc $jemalloc
if [ $? != 0 ] ; then exit 1; fi
popd
fi
# build in the mysql directory pushd $build_dir
mkdir $mysql/build.debug
if [ $? != 0 ] ; then exit 1; fi
pushd $mysql/build.debug
if [ $? != 0 ] ; then exit 1; fi if [ $? != 0 ] ; then exit 1; fi
extra_cmake_options="-DCMAKE_LINK_DEPENDS_NO_SHARED=ON" extra_cmake_options="-DCMAKE_LINK_DEPENDS_NO_SHARED=ON"
if (( $cmake_valgrind )) ; then if (( $cmake_valgrind )) ; then
...@@ -135,7 +145,7 @@ fi ...@@ -135,7 +145,7 @@ fi
if (( $cmake_debug_paranoid )) ; then if (( $cmake_debug_paranoid )) ; then
extra_cmake_options+=" -DTOKU_DEBUG_PARANOID=ON" extra_cmake_options+=" -DTOKU_DEBUG_PARANOID=ON"
fi fi
CC=$cc CXX=$cxx cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=$install_dir -DBUILD_TESTING=OFF $extra_cmake_options CC=$cc CXX=$cxx cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=$install_dir -DBUILD_TESTING=OFF $extra_cmake_options ../$mysql
if [ $? != 0 ] ; then exit 1; fi if [ $? != 0 ] ; then exit 1; fi
make -j4 install make -j4 install
if [ $? != 0 ] ; then exit 1; fi if [ $? != 0 ] ; then exit 1; fi
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment