summaryrefslogtreecommitdiff
path: root/BUILD
diff options
context:
space:
mode:
authorKonstantin Osipov <kostja@sun.com>2010-06-07 18:52:44 +0400
committerKonstantin Osipov <kostja@sun.com>2010-06-07 18:52:44 +0400
commit666f5544c2ce8d8c5ab2e276412d8c2e0a4a3a1a (patch)
tree2147683003e79edd95472c5b911a84b1d6f95728 /BUILD
parent83121c6caed0945904554aba3b126ddee0359401 (diff)
downloadmariadb-git-666f5544c2ce8d8c5ab2e276412d8c2e0a4a3a1a.tar.gz
Apply:
3413 Davi Arnaut 2010-06-03 Don't enable safemalloc for valgrind builds, it's too slow. to trunk-runtime.
Diffstat (limited to 'BUILD')
-rwxr-xr-xBUILD/SETUP.sh2
-rwxr-xr-xBUILD/build_mccge.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/BUILD/SETUP.sh b/BUILD/SETUP.sh
index 0bc16f120e5..626f932e045 100755
--- a/BUILD/SETUP.sh
+++ b/BUILD/SETUP.sh
@@ -122,7 +122,7 @@ fi
# Override -DFORCE_INIT_OF_VARS from debug_cflags. It enables the macro
# LINT_INIT(), which is only useful for silencing spurious warnings
# of static analysis tools. We want LINT_INIT() to be a no-op in Valgrind.
-valgrind_flags="-UFORCE_INIT_OF_VARS -DHAVE_purify "
+valgrind_flags="-USAFEMALLOC -UFORCE_INIT_OF_VARS -DHAVE_purify "
valgrind_flags="$valgrind_flags -DMYSQL_SERVER_SUFFIX=-valgrind-max"
valgrind_configs="--with-valgrind"
#
diff --git a/BUILD/build_mccge.sh b/BUILD/build_mccge.sh
index 2d7c0d2a2c2..c3803610e73 100755
--- a/BUILD/build_mccge.sh
+++ b/BUILD/build_mccge.sh
@@ -1010,7 +1010,7 @@ set_ccache_usage()
set_valgrind_flags()
{
if test "x$valgrind_flag" = "xyes" ; then
- loc_valgrind_flags="-UFORCE_INIT_OF_VARS -DHAVE_purify "
+ loc_valgrind_flags="-USAFEMALLOC -UFORCE_INIT_OF_VARS -DHAVE_purify "
loc_valgrind_flags="$loc_valgrind_flags -DMYSQL_SERVER_SUFFIX=-valgrind-max"
compiler_flags="$compiler_flags $loc_valgrind_flags"
with_flags="$with_flags --with-valgrind"