mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 04:22:27 +01:00
6c610ed979
- Linking now with g++ instead of gcc with 'compile-dist' to solve problems with handlersocket/client - Fixed bug in heap tables when doing handler read next-prev over last row BUILD/compile-dist: - Linking now with g++ instead of gcc with 'compile-dist' to solve problems with handlersocket/client cmd-line-utils/libedit/vi.c: Fixed compiler warning about not checking return value for write mysql-test/r/index_intersect.result: Updated results (missed this file in my last push) mysql-test/suite/handler/aria.result: Updated test results mysql-test/suite/handler/handler.inc: Changed test to use read next/read prev on key where there are duplicates that can come in different order depending on system Added testing of read next-prev over last row and read prev-next around first row mysql-test/suite/handler/heap.result: Updated test results mysql-test/suite/handler/init.inc: More rows to test mysql-test/suite/handler/innodb.result: Updated test results mysql-test/suite/handler/interface.result: Updated test results mysql-test/suite/handler/myisam.result: Updated test results mysql-test/t/variables-big.test: Fixed test to not fail on windows mysql-test/valgrind.supp: Removed not matching fun: to get rid of valgrind warning storage/heap/hp_rfirst.c: Added state so that we know if we have an active position in the index. storage/heap/hp_rkey.c: Added state so that we know if we have an active position in the index. storage/heap/hp_rnext.c: Handle reading several next after finding the last row (this caused a crash before) storage/heap/hp_rprev.c: Handle reading several prev after finding the first row (this caused a crash before) storage/xtradb/buf/buf0buf.c: Fixed compiler warning about uninitialized value
65 lines
1.5 KiB
Bash
Executable file
65 lines
1.5 KiB
Bash
Executable file
#!/bin/sh
|
|
#
|
|
# This script's purpose is to update the automake/autoconf helper scripts and
|
|
# to run a plain "configure" without any special compile flags. Only features
|
|
# that affect the content of the source distribution are enabled. The resulting
|
|
# tree can then be picked up by "make dist" to create the "pristine source
|
|
# package" that is used as the basis for all other binary builds.
|
|
#
|
|
test -f Makefile && make maintainer-clean
|
|
|
|
path=`dirname $0`
|
|
. $path/autorun.sh
|
|
|
|
gmake=
|
|
for x in gmake gnumake make; do
|
|
if $x --version 2>/dev/null | grep GNU > /dev/null; then
|
|
gmake=$x
|
|
break;
|
|
fi
|
|
done
|
|
|
|
if [ -z "$gmake" ]; then
|
|
# Our build may not depend on GNU make, but I wouldn't count on it
|
|
echo "Please install GNU make, and ensure it is in your path as gnumake, gmake, or make" >&2
|
|
exit 2
|
|
fi
|
|
|
|
# Default to gcc for CC and CXX
|
|
if test -z "$CXX" ; then
|
|
export CXX
|
|
CXX=g++
|
|
# Set some required compile options
|
|
if test -z "$CXXFLAGS" ; then
|
|
export CXXFLAGS
|
|
CXXFLAGS="-felide-constructors -fno-exceptions -fno-rtti"
|
|
fi
|
|
fi
|
|
|
|
if test -z "$CC" ; then
|
|
export CC
|
|
CC=gcc
|
|
fi
|
|
|
|
|
|
# Use ccache, if available
|
|
if ccache -V > /dev/null 2>&1
|
|
then
|
|
if echo "$CC" | grep -v ccache > /dev/null
|
|
then
|
|
export CC
|
|
CC="ccache $CC"
|
|
fi
|
|
if echo "$CXX" | grep -v ccache > /dev/null
|
|
then
|
|
export CXX
|
|
CXX="ccache $CXX"
|
|
fi
|
|
fi
|
|
|
|
# Make sure to enable all features that affect "make dist"
|
|
# Remember that configure restricts the man pages to the configured features !
|
|
./configure \
|
|
--with-plugins=max-no-ndb \
|
|
--with-embedded-server
|
|
$gmake -j4
|