From f5261d44cc1c1e1b2c8d3df31315bfbd066e5f43 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Fri, 5 Aug 2022 06:53:50 +0300 Subject: [PATCH 35/35] Do not set QT_NO_DEBUG for --enable-debug=checks See osdn #41774 Signed-off-by: Marko Lindqvist --- m4/debug.m4 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/m4/debug.m4 b/m4/debug.m4 index afbf68956b..091133dce7 100644 --- a/m4/debug.m4 +++ b/m4/debug.m4 @@ -30,7 +30,9 @@ if test "x$enable_debug" = "xsome" -o "x$enable_debug" = "xyes" -o \ FC_C_FLAGS([-Wall -Wpointer-arith -Wcast-align ], [], [EXTRA_DEBUG_CFLAGS]) if test "x$cxx_works" = "xyes" ; then - AC_DEFINE([QT_NO_DEBUG], [1], [Qt debugging support disabled]) + if test "x$enable_debug" = "xsome" || test "x$enable_debug" = "xyes"; then + AC_DEFINE([QT_NO_DEBUG], [1], [Qt debugging support disabled]) + fi FC_CXX_FLAGS([-Wall -Wpointer-arith -Wcast-align], [], [EXTRA_DEBUG_CXXFLAGS]) fi -- 2.35.1