From ec1274ddcfb23dda89d330b9be5d7cab8eb0e927 Mon Sep 17 00:00:00 2001 From: Douglas Roark Date: Sat, 24 Dec 2016 12:27:39 -0800 Subject: [PATCH] Fix linker error when configured with --enable-lcov --- configure.ac | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure.ac b/configure.ac index 794999576..8393b0bbd 100644 --- a/configure.ac +++ b/configure.ac @@ -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