[Libreoffice-commits] core.git: configure.ac solenv/gbuild
Stephan Bergmann (via logerrit)
logerrit at kemper.freedesktop.org
Fri Jun 19 15:03:29 UTC 2020
configure.ac | 3 +++
solenv/gbuild/gbuild.mk | 7 +------
2 files changed, 4 insertions(+), 6 deletions(-)
New commits:
commit 2f00ece21d4d51b553fd905b9a2e8eed12adf195
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Fri Jun 19 15:33:04 2020 +0200
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Fri Jun 19 17:02:55 2020 +0200
Make --enable-sal-log orthogonal to --enable-debug
...for consistency with other options like --enable-assert-always-abort
Change-Id: I3734485e03203aaee065e1435dfd33f980b1b5eb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96736
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
diff --git a/configure.ac b/configure.ac
index 553402e33515..ccc9c07b21cd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4146,6 +4146,9 @@ printf ("hello world\n");
fi
AC_SUBST(ENABLE_GDB_INDEX)
+if test -z "$enable_sal_log" && test "$ENABLE_DEBUG" = TRUE; then
+ enable_sal_log=yes
+fi
if test "$enable_sal_log" = yes; then
ENABLE_SAL_LOG=TRUE
fi
diff --git a/solenv/gbuild/gbuild.mk b/solenv/gbuild/gbuild.mk
index 97d2879dcc9b..64ca8184e2fa 100644
--- a/solenv/gbuild/gbuild.mk
+++ b/solenv/gbuild/gbuild.mk
@@ -235,18 +235,13 @@ gb_GLOBALDEFS += -DNDEBUG \
endif
-ifeq ($(gb_DEBUGLEVEL),0)
-
ifeq ($(ENABLE_SAL_LOG),TRUE)
gb_GLOBALDEFS += -DSAL_LOG_INFO \
-DSAL_LOG_WARN \
endif
-else
-gb_GLOBALDEFS += -DSAL_LOG_INFO \
- -DSAL_LOG_WARN \
-
+ifneq ($(gb_DEBUGLEVEL),0)
ifneq ($(gb_DEBUGLEVEL),1) # 2 or more
gb_GLOBALDEFS += -DDEBUG \
More information about the Libreoffice-commits
mailing list