Repository navigation
Use LLVM tools including lld for native Linux builds - #1327
Merged
Merged
Conversation
Extract GLIBC version strings without relying on the column layout used by GNU objdump. Only inspect shared libraries on Linux when using glibc.
Add host linker flag (host_ldflags) support to target settings. Forward host and target linker flags to dependency configure scripts.
Install aliases for the LLVM tools and use lld for Linux builds. This removes the need for building binutils. Update the musl linker wrapper for lld which has different behavior than ld.
Delete the binutils build script, toolchain rule, and download. Linux builds now use the bundled LLVM tools including lld.
EliteTK
approved these changes
Oct 14, 2026
| fi | ||
|
|
||
| CFLAGS="${CFLAGS}" CPPFLAGS="${CFLAGS}" ../dist/configure \ | ||
| CFLAGS="${CFLAGS}" CPPFLAGS="${CFLAGS}" LDFLAGS="${EXTRA_TARGET_LDFLAGS}" ../dist/configure \ |
Member
There was a problem hiding this comment.
Do we intend to replace the LDFLAGS completely or should this just append?
Contributor
Author
There was a problem hiding this comment.
Yes. EXTRA_TARGET_LDFLAGS is exported by the build driver based on the flags specified in targets.yaml. The name is not idea but these are the starting LDFLAGS, similar to CFLAGS, etc. This should have been included for some time but was left out.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Use the bundled LLVM tools for native Linux builds including lld for linking.
Remove the separate binutils build.
Cross-compilation continues to use GCC and the cross linker from binutils provided by Debian.
In support of this change the following minor modification were needed: