aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Schnelli <[email protected]>2016-12-30 08:42:55 +0100
committerJonas Schnelli <[email protected]>2016-12-30 08:43:31 +0100
commitbebe3697fdad4b1649162a69fd344d3510e18af8 (patch)
tree79b8904e9b0b3e5f718a81ec9bedfdce1595f037
parentMerge #9436: test: Include tx data in EXTRA_DIST (diff)
parentFix linker error when configured with --enable-lcov (diff)
downloaddiscoin-bebe3697fdad4b1649162a69fd344d3510e18af8.tar.xz
discoin-bebe3697fdad4b1649162a69fd344d3510e18af8.zip
Merge #9420: Fix linker error when configured with --enable-lcov
e2b5c98 Fix linker error when configured with --enable-lcov (Douglas Roark)
-rw-r--r--configure.ac2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index ced258e02..9d2817db4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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