]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
tests: When BUILD_STATIC always link against libeu users/mark/try-build-static
authorMark Wielaard <mark@klomp.org>
Wed, 21 Aug 2024 13:52:20 +0000 (15:52 +0200)
committerMark Wielaard <mark@klomp.org>
Wed, 21 Aug 2024 21:30:05 +0000 (23:30 +0200)
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>
tests/Makefile.am

index aee5413fd31fe34e22411bbd06c693b2ca187116..cdb2d405d2121b752555e5629525c79df538511b 100644 (file)
@@ -723,7 +723,7 @@ installcheck-local:
 
 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