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 <yury@shurup.com>
This commit is contained in:
Yury V. Zaytsev 2024-11-03 08:50:42 +01:00
parent 03c6f61d54
commit b9c7884ea7

View File

@ -49,7 +49,7 @@ if test "x$CFLAGS" = "x"; then
CFLAGS_OPTS=" -O2 " CFLAGS_OPTS=" -O2 "
fi fi
if test x$USE_MAINTAINER_MODE = xyes; then 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]) AC_DEFINE(USE_MAINTAINER_MODE, 1, [Use maintainer mode])
fi fi