binutils Newspaper
NOVEMBER 30, 2026
Date
/
Architectures
Components
Topics
News & Policy
Other
binutils/configure

binutils: Synchronize zstd detection with GCC

Aligns zstd compression library detection in binutils with GCC's.

This commit synchronizes the zstd compression library detection logic in binutils’ configure scripts with that of GCC. It ensures consistent support for compiler-based zstd detection and configurable search paths. Additionally, it adds ZSTD_LIBS to binutils link commands for tools using zstd via BFD and bases gold’s zstd test on the final detection result.

In Details

The config/zstd.m4 macro, now synced between GCC and Binutils, governs the detection of the zstd compression library. This change ensures that Binutils' build system uses the same logic as GCC for enabling zstd support, including its search paths and conditional compilation. It also ensures that the linker gold correctly tests for zstd functionality based on the final detection outcome.

For Context
zstd
A fast lossless compression algorithm and library developed by Facebook.
BFD
The Binary File Descriptor library, a core component of GNU Binutils that provides an abstract interface to manipulate various binary file formats.
configure script
A script generated by Autoconf that checks the system's environment and configuration options to prepare the source code for building and installation.
Autoconf
A tool used by software developers to automatically configure source code packages to adapt to a particular Unix-like operating system.
Filed Under: configurezstdbinutils