From b9c7884ea714bc0b2ff00cfdb375de99d97ab922 Mon Sep 17 00:00:00 2001 From: "Yury V. Zaytsev" Date: Sun, 3 Nov 2024 08:50:42 +0100 Subject: [PATCH] buildsys: set debugging level to `-Og` per gcc recommendations > If you are not using some other optimization option, consider using -Og (see > Options That Control Optimization) with -g. With no -O option at all, some > compiler passes that collect information useful for debugging do not run at > all, so that -Og may result in a better debugging experience. Signed-off-by: Yury V. Zaytsev --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index d6fe206d6..78c4be7c8 100644 --- a/configure.ac +++ b/configure.ac @@ -49,7 +49,7 @@ if test "x$CFLAGS" = "x"; then CFLAGS_OPTS=" -O2 " fi if test x$USE_MAINTAINER_MODE = xyes; then - CFLAGS_OPTS="-g3 -O -ggdb" + CFLAGS_OPTS="-g3 -Og -ggdb" AC_DEFINE(USE_MAINTAINER_MODE, 1, [Use maintainer mode]) fi