Skip to content

Commit e2b5c98

Browse files
author
Douglas Roark
committed
Fix linker error when configured with --enable-lcov
1 parent dce853e commit e2b5c98

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

configure.ac

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,8 @@ if test x$use_lcov = xyes; then
414414
AC_MSG_ERROR("lcov testing requested but genhtml not found")
415415
fi
416416
LCOV="$LCOV --gcov-tool=$GCOV"
417+
AX_CHECK_LINK_FLAG([[--coverage]], [LDFLAGS="$LDFLAGS --coverage"],
418+
[AC_MSG_ERROR("lcov testing requested but --coverage linker flag does not work")])
417419
AX_CHECK_COMPILE_FLAG([--coverage],[CXXFLAGS="$CXXFLAGS --coverage"],
418420
[AC_MSG_ERROR("lcov testing requested but --coverage flag does not work")])
419421
fi

0 commit comments

Comments
 (0)