From a3762926b59e1ee07335941926fe74253f49569e Mon Sep 17 00:00:00 2001 From: Michael Rash Date: Mon, 17 Mar 2014 22:07:42 -0400 Subject: [PATCH] for --enable-profile-coverage add -lgcov to LDFLAGS and remove -O0 optimization switch --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index eeaa631e..c2634f07 100644 --- a/configure.ac +++ b/configure.ac @@ -130,8 +130,9 @@ AC_ARG_ENABLE([profile-coverage], []) if test "x$want_profile_coverage" = "xyes"; then - CFLAGS="-g -O0" + CFLAGS="-g" FKO_CHECK_COMPILER_ARG([-fprofile-arcs -ftest-coverage -fno-inline]) + FKO_CHECK_COMPILER_ARG_LDFLAGS_ONLY([-lgcov]) fi dnl Decide whether or not to enable all warnings with -Wall