[gtk+] build: Set G_ENABLE_DEBUG for minimal --enable-debug=minimum
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] build: Set G_ENABLE_DEBUG for minimal --enable-debug=minimum
- Date: Wed, 2 May 2012 00:04:14 +0000 (UTC)
commit b0317280e7ff5428120648a160a462ef83f48fd3
Author: Benjamin Otte <otte redhat com>
Date: Wed May 2 01:46:02 2012 +0200
build: Set G_ENABLE_DEBUG for minimal --enable-debug=minimum
With that flag set, we get GDK_DEBUG and GTK_DEBUG support. And those
provide useful features we want when debugging.
configure.ac | 2 +-
docs/reference/gtk/running.sgml | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index ca7a323..a87fb3f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -422,7 +422,7 @@ else
if test "x$enable_debug" = "xno"; then
GTK_DEBUG_FLAGS="-DG_DISABLE_ASSERT -DG_DISABLE_CHECKS -DG_DISABLE_CAST_CHECKS"
else
- GTK_DEBUG_FLAGS="-DG_DISABLE_CAST_CHECKS"
+ GTK_DEBUG_FLAGS="-DG_ENABLE_DEBUG -DG_DISABLE_CAST_CHECKS"
fi
fi
diff --git a/docs/reference/gtk/running.sgml b/docs/reference/gtk/running.sgml
index 147637e..fe91aea 100644
--- a/docs/reference/gtk/running.sgml
+++ b/docs/reference/gtk/running.sgml
@@ -58,8 +58,8 @@ warning that occurs.
<para>
A list of <link linkend="GTK-Debug-Options">debug options</link>
to turn on in addition to those specified in the <envar>GTK_DEBUG</envar>
-environment variable. This option is only available if GTK+ has been
-configured with <option>--enable-debug=yes</option>.
+environment variable. This option is not available if GTK+ has been
+configured with <option>--enable-debug=no</option>.
</para>
</formalpara>
@@ -134,7 +134,7 @@ additional environment variables.
<title><envar>GTK_DEBUG</envar></title>
<para>
- If GTK+ has been configured with <option>--enable-debug=yes</option>,
+ Unless GTK+ has been configured with <option>--enable-debug=no</option>,
this variable can be set to a list of debug options, which cause GTK+
to print out different types of debugging information.
<variablelist>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]