configure: Link the extra valgrind debugging to --enable-debug
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
d02dc0fd84
commit
db7c9e8561
|
|
@ -260,11 +260,11 @@ if test "x$DEBUG" = xno; then
|
|||
fi
|
||||
if test "x$DEBUG" != xno; then
|
||||
AC_DEFINE(HAS_EXTRA_DEBUG,1,[Enable additional debugging])
|
||||
PKG_CHECK_MODULES(VALGRIND, [valgrind],
|
||||
AC_DEFINE([HAVE_VALGRIND], 0, [Use valgind intrinsics to suppress false warings]),)
|
||||
fi
|
||||
if test "x$DEBUG" = xfull; then
|
||||
AC_DEFINE(HAS_DEBUG_FULL,1,[Enable all debugging])
|
||||
PKG_CHECK_MODULES(VALGRIND, [valgrind],
|
||||
AC_DEFINE([HAVE_VALGRIND], 0, [Use valgind intrinsics to suppress false warings]),)
|
||||
CFLAGS="$CFLAGS -O0 -ggdb3"
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue