Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
f735f758
Commit
f735f758
authored
Dec 20, 2008
by
Mikael Ronstrom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support for building with tcmalloc support instead
of standard malloc.
parent
8d54b8ed
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
BUILD/build_mccge.sh
BUILD/build_mccge.sh
+8
-0
No files found.
BUILD/build_mccge.sh
View file @
f735f758
...
@@ -178,6 +178,7 @@ Usage: $0 [options]
...
@@ -178,6 +178,7 @@ Usage: $0 [options]
--valgrind Build with valgrind
--valgrind Build with valgrind
--fast Optimise for CPU architecture built on
--fast Optimise for CPU architecture built on
--static-linking Statically link system libraries into binaries
--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
--with-flags * Pass extra --with-xxx options to configure
EOF
EOF
if
test
"x
$1
"
!=
"x"
;
then
if
test
"x
$1
"
!=
"x"
;
then
...
@@ -627,6 +628,9 @@ parse_options()
...
@@ -627,6 +628,9 @@ parse_options()
fast_flag
=
"generic"
fast_flag
=
"generic"
fi
fi
;;
;;
--use-tcmalloc
)
use_tcmalloc
=
"yes"
;;
--with-debug
)
--with-debug
)
with_debug_flag
=
"yes"
with_debug_flag
=
"yes"
fast_flag
=
"no"
fast_flag
=
"no"
...
@@ -1250,6 +1254,9 @@ set_linux_configs()
...
@@ -1250,6 +1254,9 @@ set_linux_configs()
usage
"Only x86 and Itanium CPUs supported for Linux"
usage
"Only x86 and Itanium CPUs supported for Linux"
exit
1
exit
1
fi
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
if
test
"x
$cpu_base_type
"
=
"xx86"
;
then
base_configs
=
"
$base_configs
--enable-assembler"
base_configs
=
"
$base_configs
--enable-assembler"
fi
fi
...
@@ -1511,6 +1518,7 @@ use_autotools=
...
@@ -1511,6 +1518,7 @@ use_autotools=
engine_configs
=
engine_configs
=
ASFLAGS
=
ASFLAGS
=
LDFLAGS
=
LDFLAGS
=
use_tcmalloc
=
set_defaults_based_on_environment
set_defaults_based_on_environment
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment