]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
debuginfod: Make sure crypto and jsonc are also included in static link
authorMark Wielaard <mark@klomp.org>
Wed, 21 Aug 2024 13:32:59 +0000 (15:32 +0200)
committerMark Wielaard <mark@klomp.org>
Wed, 21 Aug 2024 21:29:26 +0000 (23:29 +0200)
When doing a --enable-gcov build we link all binaries static.
libdebuginfod.so now depends on crypto an jsonc. So also add those
when linking against libdebuginfod.a

      debuginfod/Makefile.am (libdebuginfod): Add $(crypto_LIBS)
      $(jsonc_LIBS) when BUILD_STATIC.

Signed-off-by: Mark Wielaard <mark@klomp.org>
debuginfod/Makefile.am

index e199dc0c74d2028addca7be0dfce5d262ade5143..5ad4e188c4c37173a8ed8ea427e4cbaabe192ed9 100644 (file)
@@ -47,7 +47,7 @@ libelf = ../libelf/libelf.a -lz
 if DUMMY_LIBDEBUGINFOD
 libdebuginfod = ./libdebuginfod.a
 else
-libdebuginfod = ./libdebuginfod.a -lpthread $(libcurl_LIBS)
+libdebuginfod = ./libdebuginfod.a -lpthread $(libcurl_LIBS) $(crypto_LIBS) $(jsonc_LIBS)
 endif
 else
 libasm = ../libasm/libasm.so