diff options
author | Emmanuele Bassi <ebassi@linux.intel.com> | 2010-01-10 10:00:32 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@linux.intel.com> | 2010-01-10 10:00:32 +0000 |
commit | 4c15bf185dcd55ae5daf6b68d2b58d32e9ac9d5c (patch) | |
tree | 820ad243c7bb3f283518ed6c0660ded1fa35829d | |
parent | c09c2dc1c54c83fea4ef93486081fe3fab35452c (diff) | |
download | json-glib-4c15bf185dcd55ae5daf6b68d2b58d32e9ac9d5c.tar.gz |
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.
-rw-r--r-- | 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" ] ) |