libeu is a static library with internal helper functions normally
included in all shared libraries. But when linking static (with
--enable-gcov) we need to explicitly link it into the test binaries.
* tests/Makefile.am (libelf): Add $(libeu) when BUILD_STATIC.
Signed-off-by: Mark Wielaard <mark@klomp.org>
if BUILD_STATIC
libdw = ../libdw/libdw.a -lz $(zip_LIBS) $(libelf) $(libebl) -ldl -lpthread
-libelf = ../libelf/libelf.a -lz $(zstd_LIBS)
+libelf = ../libelf/libelf.a -lz $(zstd_LIBS) $(libeu)
libasm = ../libasm/libasm.a
else
libdw = ../libdw/libdw.so