summaryrefslogtreecommitdiff
path: root/BUILD/build_mccge.sh
diff options
context:
space:
mode:
authorMikael Ronstrom <mikael@mysql.com>2008-12-20 15:46:31 +0100
committerMikael Ronstrom <mikael@mysql.com>2008-12-20 15:46:31 +0100
commitf735f75833dfd1384fb7394a08b7f3ae89412319 (patch)
tree27bcb893c18b8b8cdd3a6d2d782734d85cbecea5 /BUILD/build_mccge.sh
parent8d54b8ed6314df7c1bdc6135d1440f0465f7d0e5 (diff)
downloadmariadb-git-f735f75833dfd1384fb7394a08b7f3ae89412319.tar.gz
Add support for building with tcmalloc support instead
of standard malloc.
Diffstat (limited to 'BUILD/build_mccge.sh')
-rwxr-xr-xBUILD/build_mccge.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/BUILD/build_mccge.sh b/BUILD/build_mccge.sh
index 1a94b22cc0b..e1f58a055c9 100755
--- a/BUILD/build_mccge.sh
+++ b/BUILD/build_mccge.sh
@@ -178,6 +178,7 @@ Usage: $0 [options]
--valgrind Build with valgrind
--fast Optimise for CPU architecture built on
--static-linking Statically link system libraries into binaries
+ --use-tcmalloc Link with tcmalloc instead of standard malloc (Linux only)
--with-flags * Pass extra --with-xxx options to configure
EOF
if test "x$1" != "x" ; then
@@ -627,6 +628,9 @@ parse_options()
fast_flag="generic"
fi
;;
+ --use-tcmalloc)
+ use_tcmalloc="yes"
+ ;;
--with-debug)
with_debug_flag="yes"
fast_flag="no"
@@ -1250,6 +1254,9 @@ set_linux_configs()
usage "Only x86 and Itanium CPUs supported for Linux"
exit 1
fi
+ if test "x$use_tcmalloc" = "xyes" ; then
+ base_configs="$base_configs --with-mysqld-libs=-ltcmalloc_minimal"
+ fi
if test "x$cpu_base_type" = "xx86" ; then
base_configs="$base_configs --enable-assembler"
fi
@@ -1511,6 +1518,7 @@ use_autotools=
engine_configs=
ASFLAGS=
LDFLAGS=
+use_tcmalloc=
set_defaults_based_on_environment