Configure: Sync zstd detection with GCC (v3)
Third version of a patch that unifies zstd detection logic between Binutils and GCC's configure scripts.
This is the third version of a patch that synchronizes the zstd detection logic between Binutils and GCC. It updates the zstd.m4 macro in the GCC configuration to a unified implementation, ensuring consistent zstd support detection and configurable search paths across both projects. The changes also add ZSTD_LIBS to Binutils link commands for tools using zstd via BFD and base Gold’s zstd test on the final detection result.
- proposer
Submits version 3 of a patch to synchronize zstd detection in Binutils' configure scripts with GCC's implementation.
“Updated the GCC version of config/zstd.m4 and synced back those changes to this tree. - Fixed gold/configure.ac to use $zstd_enabled.”
In Details
This patch series updates the zstd compression library detection mechanism within the Binutils build system. It aims to harmonize the configuration logic (zstd.m4) used by both GCC and Binutils. The changes ensure that zstd support is detected consistently, with options for specifying search paths. It also integrates ZSTD_LIBS into the linking process for Binutils tools that rely on zstd through BFD, and refines the conditional logic in Gold's configuration to depend on the established zstd_enabled flag rather than just pkg-config.
- zstd
- Zstandard (Zstd) is a fast lossless compression algorithm, offering high compression ratios.
- configure script
- A script generated by Autoconf that checks the system environment and configures the build process for software packages.
- m4
- A macro processing language, often used in the Autoconf system to generate configuration scripts.
- BFD
- Binary File Descriptor library, a low-level library used by Binutils to handle various executable file formats.
- Gold
- The GNU linker, an alternative to the traditional GNU ld linker, designed for improved performance.
- pkg-config
- A helper tool used to provide information about installed libraries, such as compiler flags and linker paths.