config: Sync from GCC
Synchronizes configuration scripts from GCC, including updates to ax_check_define.m4, bootstrap-lto-lean.mk, and hwcaps.m4.
This commit syncs several configuration-related files from the GCC project into Binutils. It updates the ax_check_define.m4 macro to a newer serial, adds a flag to bootstrap-lto-lean.mk for MinGW LTO builds, and modifies hwcaps.m4 to use LT_PATH_LD instead of AC_PROG_LD. These changes help maintain consistency and incorporate recent improvements from GCC’s build system.
In Details
This commit is a configuration sync from GCC. It brings in changes to ax_check_define.m4 (updated to serial 12), bootstrap-lto-lean.mk (adding -ffat-lto-objects for mingw LTO), and hwcaps.m4 (updating AC_PROG_LD to LT_PATH_LD). These changes affect how Binutils configures itself, potentially influencing build options and cross-compilation setups, especially for LTO on MinGW targets.
- LTO
- Link-Time Optimization. A compilation technique where optimization occurs not just within individual source files, but across the entire program during the linking phase. This can lead to more aggressive and effective optimizations.
- MinGW
- Minimalist GNU for Windows. A development environment that provides a GNU toolchain (like GCC and Binutils) targeting the Microsoft Windows platform.
- ax_check_define.m4
- An Autoconf macro file used in the configuration process. It likely helps check if a specific preprocessor definition is available or defined.
- bootstrap-lto-lean.mk
- A Make include file used during the build process, specifically for bootstrapping LTO (Link-Time Optimization) builds in a 'lean' configuration, possibly for reduced build times or resource usage.
- autoconf
- An extensible automatic configuration script for source code packages. It generates shell scripts that adapt the package to local environments.
- AC_PROG_LD
- An Autoconf macro that checks for and configures the linker used in the build process.
- LT_PATH_LD
- Likely a macro related to libtool (LT) for finding the linker, possibly a more robust or preferred method than AC_PROG_LD in certain contexts.