From 3acf285916968a05ea42b3ef0f9654a33e308da7 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Sun, 3 Mar 2013 10:02:06 +0100 Subject: Use mingw compatible coverage flags The way that coverage is built and linked is different with mingw so just use the --coverage flag to represent the correct behavior when cross compiling. --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 1c618e9..ee7eb7e 100644 --- a/configure.ac +++ b/configure.ac @@ -401,8 +401,8 @@ if test "$enable_coverage" = "yes"; then AC_MSG_ERROR(lcov's genhtml tool is not installed) fi - CFLAGS="$CFLAGS -O0 -g -fprofile-arcs -ftest-coverage" - LDFLAGS="$LDFLAGS -lgcov" + CFLAGS="$CFLAGS -O0 -g --coverage" + LDFLAGS="$LDFLAGS --coverage" fi AM_CONDITIONAL([WITH_COVERAGE], [test "$enable_coverage" = "yes"]) -- cgit v1.1