[gjs] configure: Fix coverage reports
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs] configure: Fix coverage reports
- Date: Mon, 3 Feb 2014 17:32:29 +0000 (UTC)
commit 3ffd4ce5b4e84e09df49e62f751859a17009bd2c
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Mon Feb 3 12:22:09 2014 -0500
configure: Fix coverage reports
I was getting weird linker errors. This seems to fix everything.
configure.ac | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 337159f..22a160a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -60,8 +60,9 @@ if test x$enable_coverage = xyes; then
AC_MSG_ERROR([lcov and genhtml are required for --enable-coverage])
fi
- CFLAGS="$CFLAGS -g -O0 -fprofile-arcs -ftest-coverage"
- CXXFLAGS="$CXXFLAGS -g -O0 -fprofile-arcs -ftest-coverage"
+ CFLAGS="$CFLAGS -g -O0 --coverage"
+ CXXFLAGS="$CXXFLAGS -g -O0 --coverage"
+ LIBS="$LIBS -lgcov"
fi
AM_CONDITIONAL([ENABLE_COVERAGE], [test x$enable_coverage = xyes])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]