summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorPaul Brook2009-06-04 12:39:04 +0200
committerPaul Brook2009-06-04 12:41:10 +0200
commitf3d08ee6aeb6cc85928dda4ec5e972b85cda495d (patch)
tree7d381a8c7946484c2ee91bab601fb06b9dc1a77e /configure
parentqdev: kill DeviceState->name (diff)
downloadqemu-f3d08ee6aeb6cc85928dda4ec5e972b85cda495d.tar.gz
qemu-f3d08ee6aeb6cc85928dda4ec5e972b85cda495d.tar.xz
qemu-f3d08ee6aeb6cc85928dda4ec5e972b85cda495d.zip
Add --enable-debug
New configure option for debug builds. Signed-off-by: Paul Brook <paul@codesourcery.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure16
1 files changed, 15 insertions, 1 deletions
diff --git a/configure b/configure
index 21c0633b20..42d46f2580 100755
--- a/configure
+++ b/configure
@@ -157,6 +157,7 @@ case "$cpu" in
esac
gprof="no"
debug_tcg="no"
+debug="no"
sparse="no"
strip_opt="yes"
bigendian="no"
@@ -411,6 +412,12 @@ for opt do
;;
--disable-debug-tcg) debug_tcg="no"
;;
+ --enable-debug)
+ # Enable debugging options that aren't excessively noisy
+ debug_tcg="yes"
+ debug="yes"
+ strip_opt="no"
+ ;;
--enable-sparse) sparse="yes"
;;
--disable-sparse) sparse="no"
@@ -504,7 +511,10 @@ for opt do
done
# default flags for all hosts
-CFLAGS="$CFLAGS -O2 -g -fno-strict-aliasing"
+CFLAGS="$CFLAGS -g -fno-strict-aliasing"
+if test "$debug" = "no" ; then
+ CFLAGS="$CFLAGS -O2"
+fi
CFLAGS="$CFLAGS -Wall -Wundef -Wendif-labels -Wwrite-strings -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls"
LDFLAGS="$LDFLAGS -g"
if test "$werror" = "yes" ; then
@@ -589,6 +599,7 @@ echo " --install=INSTALL use specified install [$install]"
echo " --static enable static build [$static]"
echo " --enable-debug-tcg enable TCG debugging"
echo " --disable-debug-tcg disable TCG debugging (default)"
+echo " --disable-debug enable common debug build options"
echo " --enable-sparse enable sparse checker"
echo " --disable-sparse disable sparse checker (default)"
echo " --disable-strip disable stripping binaries"
@@ -1492,6 +1503,9 @@ esac
if test "$debug_tcg" = "yes" ; then
echo "#define DEBUG_TCG 1" >> $config_h
fi
+if test "$debug" = "yes" ; then
+ echo "#define DEBUG_EXEC 1" >> $config_h
+fi
if test "$sparse" = "yes" ; then
echo "CC := REAL_CC=\"\$(CC)\" cgcc" >> $config_mak
echo "HOST_CC := REAL_CC=\"\$(HOST_CC)\" cgcc" >> $config_mak