Landing: 7beb7a55a169
Project / Subsystem
gcc / build
Date
2026-05-01
Author
Manuel Jacob
Commit
7beb7a55a169d98bbc60ddd33874b48b142fe445
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- build
- patch_id
- —
- commit_hash
- 7beb7a55a169d98bbc60ddd33874b48b142fe445
- source_type
- github
- headline
- Build: Preserve *_FOR_BUILD environment variables.
- tldr
- The build process now consistently preserves *_FOR_BUILD environment variables, enabling custom build tool configurations.
- author
- Manuel Jacob
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- gcc:build: preserve *_for_build environment variables in all cases
- series_parts
- []
- tags
-
- • build
- • configure
- • cross-compilation
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-05-01T00:00:00.000Z
Environment variables like CC_FOR_BUILD (C compiler for the build architecture) were not being consistently preserved during the configuration process, particularly when the build and host architectures were the same. This commit ensures that these *_FOR_BUILD variables are always preserved, enabling users to specify custom build tools. Without the patch, the configure script would incorrectly default to using the host compiler even when a specific CC_FOR_BUILD was provided.