summaryrefslogtreecommitdiff
path: root/BUILD
diff options
context:
space:
mode:
Diffstat (limited to 'BUILD')
-rw-r--r--BUILD/SETUP.sh11
-rwxr-xr-xBUILD/compile-hpux11-parisc2-aCC20
2 files changed, 19 insertions, 12 deletions
diff --git a/BUILD/SETUP.sh b/BUILD/SETUP.sh
index aa6b412d73b..f8baf317e72 100644
--- a/BUILD/SETUP.sh
+++ b/BUILD/SETUP.sh
@@ -6,6 +6,7 @@ fi
just_print=
just_configure=
+full_debug=
while test $# -gt 0
do
case "$1" in
@@ -21,6 +22,7 @@ Any other options will be passed directly to configure.
Note: this script is intended for internal use by MySQL developers.
EOF
+ --with-debug=full ) full_debug="=full"; shift ;;
* ) break ;;
esac
done
@@ -48,7 +50,8 @@ fast_cflags="-O3 -fno-omit-frame-pointer"
# this is one is for someone who thinks 1% speedup is worth not being
# able to backtrace
reckless_cflags="-O3 -fomit-frame-pointer "
-debug_cflags="-DUNIV_MUST_NOT_INLINE -DEXTRA_DEBUG -DFORCE_INIT_OF_VARS -DSAFEMALLOC -DPEDANTIC_SAFEMALLOC -DSAFE_MUTEX -O1 -Wuninitialized"
+
+debug_cflags="-DUNIV_MUST_NOT_INLINE -DEXTRA_DEBUG -DFORCE_INIT_OF_VARS -DSAFEMALLOC -DPEDANTIC_SAFEMALLOC -DSAFE_MUTEX"
base_cxxflags="-felide-constructors -fno-exceptions -fno-rtti"
@@ -62,7 +65,11 @@ sparc_configs=""
# and unset local_infile_configs
local_infile_configs="--enable-local-infile"
-debug_configs="--with-debug"
+debug_configs="--with-debug$full_debug"
+if [ -z "$full_debug" ]
+then
+ debug_cflags="$debug_cflags -O1 -Wuninitialized"
+fi
if gmake --version > /dev/null 2>&1
then
diff --git a/BUILD/compile-hpux11-parisc2-aCC b/BUILD/compile-hpux11-parisc2-aCC
index 1bdef94e080..2fc7a6d2b6e 100755
--- a/BUILD/compile-hpux11-parisc2-aCC
+++ b/BUILD/compile-hpux11-parisc2-aCC
@@ -20,7 +20,7 @@ release_flags="-fast +O3"
# note on pointers below.
cflags="-g -z +O0"
cxxflags="-g0 -z +O0"
-debug_conigure_options="--with-debug"
+debug_configure_options="--with-debug"
while [ "$#" != 0 ]; do
case "$1" in
@@ -40,23 +40,23 @@ while [ "$#" != 0 ]; do
--release)
echo "Building release binary"
cflags="$release_flags"
- cxxflags="$release_flags"
- debug_configure_options=""
+ cxxflags="$release_flags"
+ debug_configure_options=""
;;
- -32)
- echo "Building 32-bit binary"
- ;;
- -64)
- echo "Building 64-bit binary"
+ -32)
+ echo "Building 32-bit binary"
+ ;;
+ -64)
+ echo "Building 64-bit binary"
cflags="$cflags +DA2.0W +DD64"
cxxflags="$cxxflags +DA2.0W +DD64"
- ;;
+ ;;
*)
echo "$0: invalid option '$1'; use --help to show usage"
exit 1
;;
esac
- shift
+ shift
done