Landing: 21ed8a7be17d

Project / Subsystem

gcc / build

Date

2026-07-02

Author

Rainer Orth

Commit

21ed8a7be17db49cbe66d5f59c476777c3fa8710

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
build
patch_id
commit_hash
21ed8a7be17db49cbe66d5f59c476777c3fa8710
source_type
github
headline
build: Simplify in-tree gld version checks
tldr
GCC build system simplifies and unifies checks for in-tree GNU linker versions.
author
Rainer Orth
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • build
  • configure
  • linker
  • refactor
discussion_id_link
bugzilla_pr
date
2026-07-02T00:00:00.000Z

This commit refactors the GCC build system to simplify repetitive checks for the version of the in-tree GNU linker (gld). Two new shell functions, gcc_fn_gld_min_version and gcc_fn_gld_elf_min_version, are introduced in configure.ac. These functions provide a unified and more readable way to ascertain if the bundled linker meets minimum version requirements for specific features, improving maintainability.