]> git.ipfire.org Git - thirdparty/elfutils.git/commit
Fix static build when zstd is enabled for libelf
authorMark Wielaard <mark@klomp.org>
Fri, 3 Mar 2023 16:10:30 +0000 (17:10 +0100)
committerMark Wielaard <mark@klomp.org>
Fri, 3 Mar 2023 16:10:30 +0000 (17:10 +0100)
commited688a59b4d4f5ccf6ef15244e5a9139f71769a3
treeb05013a8d20af62c7fd04f5d816c66c02f4eded3
parent67a187d4c1790058fc7fd218317851cb68bb087c
Fix static build when zstd is enabled for libelf

When doing a static build (as with --enable-gcov) the build fails
because the executables aren't linked with -lzstd. Also the
run-debuginfod-query-retry.sh test relies on libdebuginfod.so.1 which
isn't there.

Fix by adding $(zstd_LIBS) to the static libelf lines and using the
debuginfod-find executable itself in the testcase.

    * src/Makefile.am (libelf): When BUILD_STATIC add $(zstd_LIBS)
    * tests/Makefile.am (libelf): Likewise.
    * tests/run-debuginfod-query-retry.sh: Use debuginfod-find instead
      of libdebuginfod.so.1

Signed-off-by: Mark Wielaard <mark@klomp.org>
src/Makefile.am
tests/Makefile.am
tests/run-debuginfod-query-retry.sh