[json-glib] build: Fix CFLAGS and LDFLAGS for the gcov target
- From: Emmanuele Bassi <ebassi src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [json-glib] build: Fix CFLAGS and LDFLAGS for the gcov target
- Date: Sun, 10 Jan 2010 10:47:10 +0000 (UTC)
commit 4c15bf185dcd55ae5daf6b68d2b58d32e9ac9d5c
Author: Emmanuele Bassi <ebassi linux intel com>
Date: Sun Jan 10 10:00:32 2010 +0000
build: Fix CFLAGS and LDFLAGS for the gcov target
A copy and paste thinko duplicated the CFLAGS into the LDFLAGS, so we
need to fix that. The CFLAGS should also specify the optimization level
to 0 and turn on debugging notes, in case --enable-debug and
--enable-maintainer-flags are turned off.
configure.ac | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 9805430..42a1199 100644
--- a/configure.ac
+++ b/configure.ac
@@ -141,8 +141,8 @@ AC_ARG_ENABLE([gcov],
AS_IF([test "x$enable_gcov" = "xyes" && test "x$GCC" = "xyes"],
[
- GCOV_CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
- GCOV_LDFLAGS="$LDFLAGS -fprofile-arcs -ftest-coverage"
+ GCOV_CFLAGS="$CFLAGS -O0 -g -fprofile-arcs -ftest-coverage"
+ GCOV_LDFLAGS="$LDFLAGS -lgcov"
]
)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]