Re: [PATCH v3 0/4] tools build: Fixes for libbfd -lzstd dependency

From: Namhyung Kim

Date: Sat Nov 14 2026 - 23:13:01 EST


On Tue, 03 Nov 2026 20:30:02 -0800, Ian Rogers wrote:
> This series addresses build problems when linking against static
> libbfd/libopcodes on distributions like Fedora where binutils is built
> with zstd section decompression support (requiring '-liberty -lz -lzstd'
> together).
>
> In v2, commit 89d001d48ec7 ("tools build: Add zstd to the binutils
> library feature tests") landed in tools/build/feature/Makefile at the
> same time, creating a merge conflict and only adding '|| $(BUILD_BFD)
> -lzstd' without '-liberty -lz' or the corresponding
> libbfd-liberty-z-zstd feature check in perf and bpftool (so even if
> test-libbfd.bin passed with -lzstd, perf and bpftool would link only
> '-lbfd -lopcodes' without '-lzstd').
>
> [...]

Applied to perf-tools-next, thanks!

Best regards
Namhyung