]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
srcfiles: Fix --enable-gcov (BUILD_STATIC) build
authorMark Wielaard <mark@klomp.org>
Tue, 6 Feb 2024 11:34:51 +0000 (12:34 +0100)
committerMark Wielaard <mark@klomp.org>
Tue, 6 Feb 2024 11:34:51 +0000 (12:34 +0100)
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 <mark@klomp.org>
src/Makefile.am

index 28fab5f55511afe35f5aad164f273303a87bd018..1d592d4de93272dc053aaa94002bcf766f51f879 100644 (file)
@@ -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++