Fix linker error when configured with --enable-lcov

This commit is contained in:
Douglas Roark
2016-12-24 12:27:39 -08:00
committed by Michel van Kessel
parent 7f9181e94e
commit ec1274ddcf

View File

@@ -443,6 +443,8 @@ if test x$use_lcov = xyes; then
AC_MSG_ERROR("lcov testing requested but comparison tool was not specified")
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