summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStef Walter <stefw@gnome.org>2013-03-03 10:02:06 +0100
committerStef Walter <stefw@gnome.org>2013-03-03 10:07:18 +0100
commit3acf285916968a05ea42b3ef0f9654a33e308da7 (patch)
treeb00b121daebebd62ddc79eedbcbc6cd9b0f81107
parent5868e4aba23b211d8dd35af5061939ee72fe9c41 (diff)
downloadp11-kit-3acf285916968a05ea42b3ef0f9654a33e308da7.tar.gz
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.
-rw-r--r--configure.ac4
1 files 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"])