diff options
author | Mark Wielaard <mark@klomp.org> | 2019-11-26 08:56:44 +0100 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2019-11-26 08:56:44 +0100 |
commit | 3f81dbd235172709021cc453d256e855d271686e (patch) | |
tree | 5dcd976da471b1f955be2e3f89ab361fe5927073 /tests/coverage.sh | |
parent | edf79a4bbc80b35f40abce73986dc6d6e10d40bc (diff) | |
download | elfutils-3f81dbd235172709021cc453d256e855d271686e.tar.gz |
Fix BUILD_STATIC build and enable gcov for debuginfod.
libdw now always needs -lpthread and -ld even when BUILD_STATIC.
BUILD_STATIC is only used when doing a gcov enabled build.
Enable gcov coverage also for debuginfod.
Signed-off-by: Mark Wielaard <mark@klomp.org>
Diffstat (limited to 'tests/coverage.sh')
-rwxr-xr-x | tests/coverage.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/coverage.sh b/tests/coverage.sh index 5cc353c9..01d292cc 100755 --- a/tests/coverage.sh +++ b/tests/coverage.sh @@ -8,14 +8,14 @@ fi cd .. -for d in lib libasm libdw libdwfl libebl libelf backends src; do +for d in lib libasm libdw libdwfl libebl libelf backends src debuginfod; do tmp=$d-data cd $d unused=0 unused_files= for f in *.gcno; do base="$(basename $f .gcno)" - fc="$base.c" + if [ -f "$base.c" ]; then fc="$base.c"; else fc="$base.cxx"; fi gcda="$base.gcda" if [ -f "$gcda" ]; then gcov -n -a "$fc" | |