From: Mark Wielaard Date: Tue, 6 Feb 2024 11:34:51 +0000 (+0100) Subject: srcfiles: Fix --enable-gcov (BUILD_STATIC) build X-Git-Tag: elfutils-0.191~23 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4523fb7d6c9b75a36f743976a37986ae8533ace8;p=thirdparty%2Felfutils.git srcfiles: Fix --enable-gcov (BUILD_STATIC) build 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 --- diff --git a/src/Makefile.am b/src/Makefile.am index 28fab5f55..1d592d4de 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++