for --enable-profile-coverage add -lgcov to LDFLAGS and remove -O0 optimization switch
authorMichael Rash <mbr@cipherdyne.org>
Tue, 18 Mar 2014 02:07:42 +0000 (22:07 -0400)
committerMichael Rash <mbr@cipherdyne.org>
Tue, 18 Mar 2014 02:07:42 +0000 (22:07 -0400)
configure.ac

index eeaa631..c2634f0 100644 (file)
@@ -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