mirror of
https://github.com/MariaDB/server.git
synced 2025-10-28 17:15:19 +03:00
Fixed bug in TRIM changed strnmov -> strmake BUILD/SETUP.sh: Removed --disable-shared Docs/manual.texi: Changelog Installing many servers acinclude.m4: Force use of db-3.2.3h client/mysql.cc: cleanup mysql-test/r/func_str.result: Added new TRIM test mysql-test/t/func_str.test: Added new TRIM test mysys/charset.c: change to use strmake instead of strnmov mysys/mf_format.c: change to use strmake instead of strnmov mysys/mf_tempfile.c: change to use strmake instead of strnmov scripts/make_binary_distribution.sh: Removed error messages for missing files sql/handler.cc: More debug sql/item_strfunc.cc: Fixed bug in TRIM() sql/mysqld.cc: Added MYSQL_SERVER_SUFFIX to mysqld
46 lines
1.6 KiB
Bash
46 lines
1.6 KiB
Bash
if ! test -f sql/mysqld.cc; then
|
|
echo "You must run this script from the MySQL top-level directory"
|
|
exit 1
|
|
fi
|
|
|
|
set -e # exit on error
|
|
|
|
export AM_MAKEFLAGS="-j 4" # XXX: auto-make uses this variable - export it???
|
|
|
|
# If you are not using codefusion add "-Wpointer-arith" to WARNINGS
|
|
# The following warning flag will give too many warnings:
|
|
# -Wshadow -Wunused -Winline (The later isn't usable in C++ as
|
|
# __attribute()__ doesn't work with gnu C++)
|
|
global_warnings="-Wimplicit -Wreturn-type -Wid-clash-51 -Wswitch -Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat -Wimplicit-function-dec -Wimplicit-int -Wparentheses -Wsign-compare -Wwrite-strings"
|
|
debug_extra_warnings="-Wuninitialized"
|
|
c_warnings="$global_warnings -Wunused"
|
|
cxx_warnings="$global_warnings -Woverloaded-virtual -Wextern-inline -Wsign-promo -Wreorder -Wctor-dtor-privacy -Wnon-virtual-dtor"
|
|
|
|
alpha_cflags="-mcpu=ev6 -Wa,-mev6" # not used yet
|
|
pentium_cflags="-mpentiumpro"
|
|
sparc_cflags=""
|
|
|
|
fast_cflags="-O6 -fno-omit-frame-pointer"
|
|
reckless_cflags="-O6 -fomit-frame-pointer"
|
|
debug_cflags="-DEXTRA_DEBUG -DFORCE_INIT_OF_VARS -DSAFEMALLOC -DSAFE_MUTEX -O2"
|
|
|
|
base_cxxflags="-felide-constructors -fno-exceptions -fno-rtti"
|
|
|
|
base_configs="--prefix=/usr/local/mysql --enable-assembler --with-extra-charsets=complex --enable-thread-safe-client --with-mysqld-ldflags=-all-static"
|
|
alpha_configs="" # not used yet
|
|
pentium_configs=""
|
|
sparc_configs=""
|
|
|
|
debug_configs="--with-debug"
|
|
|
|
if gmake --version > /dev/null 2>&1; then
|
|
make=gmake
|
|
else
|
|
make=make
|
|
fi
|
|
|
|
$make -k clean || true
|
|
/bin/rm -f */.deps/*.P config.cache
|
|
|
|
aclocal; autoheader; aclocal; automake; autoconf
|