mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
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:
parent
03c6f61d54
commit
b9c7884ea7
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user