for --enable-profile-coverage add -lgcov to LDFLAGS and remove -O0 optimization switch

This commit is contained in:
Michael Rash 2014-03-17 22:07:42 -04:00
parent 46e8428e01
commit a3762926b5

View 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