mirror of https://github.com/xzeldon/htop.git
Merge branch 'enable-better-debug-on-enable-debug' of fasterit/htop
This commit is contained in:
commit
b1befa3287
|
@ -295,10 +295,10 @@ profile:
|
||||||
$(MAKE) all AM_CPPFLAGS="-pg -O2 -DNDEBUG"
|
$(MAKE) all AM_CPPFLAGS="-pg -O2 -DNDEBUG"
|
||||||
|
|
||||||
debug:
|
debug:
|
||||||
$(MAKE) all AM_CPPFLAGS="-ggdb -DDEBUG"
|
$(MAKE) all AM_CPPFLAGS="-ggdb3 -Og" CFLAGS="$(patsubst -O%,,$(CFLAGS))"
|
||||||
|
|
||||||
coverage:
|
coverage:
|
||||||
$(MAKE) all AM_CPPFLAGS="-fprofile-arcs -ftest-coverage -DDEBUG" AM_LDFLAGS="-lgcov"
|
$(MAKE) all AM_CPPFLAGS="-fprofile-arcs -ftest-coverage" AM_LDFLAGS="-lgcov"
|
||||||
|
|
||||||
cppcheck:
|
cppcheck:
|
||||||
cppcheck -q -v . --enable=all -DHAVE_OPENVZ
|
cppcheck -q -v . --enable=all -DHAVE_OPENVZ
|
||||||
|
|
|
@ -567,11 +567,13 @@ fi
|
||||||
|
|
||||||
AC_ARG_ENABLE([debug],
|
AC_ARG_ENABLE([debug],
|
||||||
[AS_HELP_STRING([--enable-debug],
|
[AS_HELP_STRING([--enable-debug],
|
||||||
[Enable asserts and internal sanity checks @<:@default=no@:>@])],
|
[Enable compiling with maximum debug info, asserts and internal sanity checks @<:@default=no@:>@])],
|
||||||
[],
|
[],
|
||||||
[enable_debug=no])
|
[enable_debug=no])
|
||||||
if test "x$enable_debug" != xyes; then
|
if test "x$enable_debug" != xyes; then
|
||||||
AM_CPPFLAGS="$AM_CPPFLAGS -DNDEBUG"
|
AM_CPPFLAGS="$AM_CPPFLAGS -DNDEBUG"
|
||||||
|
else
|
||||||
|
AM_CPPFLAGS="$AM_CPPFLAGS -ggdb3"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue