Merge #9420: Fix linker error when configured with --enable-lcov

e2b5c98 Fix linker error when configured with --enable-lcov (Douglas Roark)
This commit is contained in:
Jonas Schnelli 2016-12-30 08:42:55 +01:00
commit bebe3697fd
No known key found for this signature in database
GPG Key ID: 29D4BCB6416F53EC
1 changed files with 2 additions and 0 deletions

View File

@ -414,6 +414,8 @@ if test x$use_lcov = xyes; then
AC_MSG_ERROR("lcov testing requested but genhtml not found")
fi
LCOV="$LCOV --gcov-tool=$GCOV"
AX_CHECK_LINK_FLAG([[--coverage]], [LDFLAGS="$LDFLAGS --coverage"],
[AC_MSG_ERROR("lcov testing requested but --coverage linker flag does not work")])
AX_CHECK_COMPILE_FLAG([--coverage],[CXXFLAGS="$CXXFLAGS --coverage"],
[AC_MSG_ERROR("lcov testing requested but --coverage flag does not work")])
fi