When configuring with --enable-gcov we build most things static. Including libdebuginfod. The src Makefile was only setup for a shared library build of libdebuginfod.so. Fix this by providing a static libdebuginfod in case of BUILD_STATIC.
This fixes the builder.sourceware.org elfutils-snapshots-coverage and provides fresh coverage reports again at https://snapshots.sourceware.org/elfutils/coverage/latest/ * Makefile.am (BUILD_STATIC): Provide libdebuginfod.a Signed-off-by: Mark Wielaard <m...@klomp.org> --- src/Makefile.am | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/Makefile.am b/src/Makefile.am index 28fab5f5..1d592d4d 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -43,18 +43,23 @@ if BUILD_STATIC libasm = ../libasm/libasm.a libdw = ../libdw/libdw.a -lz $(zip_LIBS) $(libelf) -ldl -lpthread libelf = ../libelf/libelf.a -lz $(zstd_LIBS) +if LIBDEBUGINFOD +libdebuginfod = ../debuginfod/libdebuginfod.a -lpthread $(libcurl_LIBS) +else +libdebuginfod = +endif else libasm = ../libasm/libasm.so libdw = ../libdw/libdw.so libelf = ../libelf/libelf.so -endif -libebl = ../libebl/libebl.a ../backends/libebl_backends.a ../libcpu/libcpu.a -libeu = ../lib/libeu.a if LIBDEBUGINFOD libdebuginfod = ../debuginfod/libdebuginfod.so else libdebuginfod = endif +endif +libebl = ../libebl/libebl.a ../backends/libebl_backends.a ../libcpu/libcpu.a +libeu = ../lib/libeu.a if DEMANGLE demanglelib = -lstdc++ -- 2.39.3