--enable-gcov: disable optimizations in configure

instead of potentially having ENABLE_OPTIMIZED set and overriding
gb_COMPILEROPTFLAGS flag to -O0

Change-Id: If14b44f06cda11aa887c88dbc7549effb8fe7a89
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187038
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Tested-by: Jenkins
This commit is contained in:
Christian Lohmaier
2025-06-26 16:06:10 +02:00
parent d0c5f49cc9
commit 4d43cdf5dc
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -5313,7 +5313,7 @@ ENABLE_OPTIMIZED=
ENABLE_OPTIMIZED_DEBUG=
AC_MSG_CHECKING([whether to compile with optimization flags])
if test -z "$enable_optimized"; then
if test -n "$ENABLE_DEBUG$ENABLE_DBGUTIL"; then
if test -n "$ENABLE_DEBUG$ENABLE_DBGUTIL$ENABLE_GCOV"; then
enable_optimized=no
else
enable_optimized=yes
-1
View File
@@ -124,7 +124,6 @@ gb_GCOV_LDFLAGS := -fprofile-arcs -lgcov
gb_CFLAGS_COMMON += -fprofile-arcs -ftest-coverage
gb_CXXFLAGS_COMMON += -fprofile-arcs -ftest-coverage
gb_LinkTarget_LDFLAGS += $(gb_GCOV_LDFLAGS)
gb_COMPILEROPTFLAGS := -O0
endif
ifeq ($(DISABLE_DYNLOADING),TRUE)