summaryrefslogtreecommitdiff
path: root/BUILD
diff options
context:
space:
mode:
authorMikael Ronström <mikael@dator9>2011-05-12 14:29:32 +0200
committerMikael Ronström <mikael@dator9>2011-05-12 14:29:32 +0200
commit43c55e9a01fed3babab6e53eac2aed388f3ed2dc (patch)
treeb38b221786a2d3d9fc1ff6572ad859f7aeacde27 /BUILD
parent385551271556a8a4f1c9b669a91cb08adf33a89f (diff)
parent30265fd178745430101cfe6e15e02fa3dbc28797 (diff)
downloadmariadb-git-43c55e9a01fed3babab6e53eac2aed388f3ed2dc.tar.gz
merge
Diffstat (limited to 'BUILD')
-rwxr-xr-xBUILD/SETUP.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/BUILD/SETUP.sh b/BUILD/SETUP.sh
index 2642788e360..c7f434d1bb3 100755
--- a/BUILD/SETUP.sh
+++ b/BUILD/SETUP.sh
@@ -31,6 +31,7 @@ Usage: $0 [-h|-n] [configure-options]
-h, --help Show this help message.
-n, --just-print Don't actually run any commands; just print them.
-c, --just-configure Stop after running configure.
+ --with-debug=full Build with full debug(no optimizations, keep call stack).
--warning-mode=[old|pedantic|maintainer]
Influences the debug flags. Old is default.
--prefix=path Build with prefix 'path'.
@@ -46,6 +47,8 @@ parse_options()
case "$1" in
--prefix=*)
prefix=`get_key_value "$1"`;;
+ --with-debug=full)
+ full_debug="=full";;
--warning-mode=*)
warning_mode=`get_key_value "$1"`;;
-c | --just-configure)
@@ -76,6 +79,7 @@ just_print=
just_configure=
warning_mode=
maintainer_mode=
+full_debug=
parse_options "$@"
@@ -154,7 +158,11 @@ base_cxxflags="-felide-constructors -fno-exceptions -fno-rtti"
fast_cflags="-O3 -fno-omit-frame-pointer"
debug_configs="--with-debug"
-debug_cflags="$debug_cflags $debug_extra_cflags"
+if [ -z "$full_debug" ]
+then
+ debug_cflags="$debug_cflags $debug_extra_cflags"
+fi
+
#
# Configuration options.