Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set the LD environment variable #1068

Merged
merged 3 commits into from
Oct 14, 2023
Merged

Set the LD environment variable #1068

merged 3 commits into from
Oct 14, 2023

Conversation

dstufft
Copy link
Contributor

@dstufft dstufft commented Jun 29, 2023

Some configure + make systems look for the ld binary that is supposed to be used, and invoke it directly for various reasons.

Currently this uses the ld binary from $PATH, not from the toolchain, so we set the LD environment variable to ensure that we're using the ld binary.

Note: This grabs the ld executable directly from cc_toolchain.ld_executable rather than using something like cxx_linker_executable, because the former returns CC generally, but LD should be the linker directly.

Copy link
Member

@jsharpe jsharpe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@jsharpe jsharpe enabled auto-merge (squash) October 14, 2023 13:55
auto-merge was automatically disabled October 14, 2023 13:56

Merge queue setting changed

@jsharpe jsharpe added this pull request to the merge queue Oct 14, 2023
@jsharpe jsharpe removed this pull request from the merge queue due to the queue being cleared Oct 14, 2023
@jsharpe jsharpe enabled auto-merge (squash) October 14, 2023 14:17
@jsharpe jsharpe merged commit c62e551 into bazel-contrib:main Oct 14, 2023
1 check passed
jsharpe added a commit to jsharpe/rules_foreign_cc that referenced this pull request Jan 20, 2024
jsharpe added a commit to jsharpe/rules_foreign_cc that referenced this pull request Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants