for --enable-profile-coverage add -lgcov to LDFLAGS and remove -O0 optimization switch
This commit is contained in:
parent
46e8428e01
commit
a3762926b5
@ -130,8 +130,9 @@ AC_ARG_ENABLE([profile-coverage],
|
|||||||
[])
|
[])
|
||||||
|
|
||||||
if test "x$want_profile_coverage" = "xyes"; then
|
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([-fprofile-arcs -ftest-coverage -fno-inline])
|
||||||
|
FKO_CHECK_COMPILER_ARG_LDFLAGS_ONLY([-lgcov])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dnl Decide whether or not to enable all warnings with -Wall
|
dnl Decide whether or not to enable all warnings with -Wall
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user