diff options
| author | Douglas Roark <[email protected]> | 2016-12-24 12:27:39 -0800 |
|---|---|---|
| committer | Douglas Roark <[email protected]> | 2016-12-28 21:47:51 -0800 |
| commit | e2b5c98cefc45a1404d4ec3230860f2e1c5df0c9 (patch) | |
| tree | 79b8904e9b0b3e5f718a81ec9bedfdce1595f037 | |
| parent | Merge #9436: test: Include tx data in EXTRA_DIST (diff) | |
| download | discoin-e2b5c98cefc45a1404d4ec3230860f2e1c5df0c9.tar.xz discoin-e2b5c98cefc45a1404d4ec3230860f2e1c5df0c9.zip | |
Fix linker error when configured with --enable-lcov
| -rw-r--r-- | configure.ac | 2 |
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 |