about summary refs log tree commit diff
path: root/compiler/rustc_interface/src/queries.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-06-07 22:02:24 +0000
committerbors <bors@rust-lang.org>2023-06-07 22:02:24 +0000
commitf383703e32dc583468a702213eff63c58c7f9ef5 (patch)
tree5579b1c0823e68cb0cbbc027bfb3c49b83025cc5 /compiler/rustc_interface/src/queries.rs
parenta97c36dd2e6f711949fc9b790476e93bd9e6d1f4 (diff)
parent0304e0a5b0fafa1b3be46207c4651709eec478c5 (diff)
downloadrust-f383703e32dc583468a702213eff63c58c7f9ef5.tar.gz
rust-f383703e32dc583468a702213eff63c58c7f9ef5.zip
Auto merge of #111698 - Amanieu:force-static-lib, r=petrochenkov
Force all native libraries to be statically linked when linking a static binary

Previously, `#[link]` without an explicit `kind = "static"` would confuse the linker and end up producing a dynamically linked library because of the `-Bdynamic` flag. However this binary would not work correctly anyways since it was linked with startup code for a static binary.

This PR solves this by forcing all native libraries to be statically linked when the output is a static binary that cannot link to dynamic libraries anyways.

Fixes #108878
Fixes #102993
Diffstat (limited to 'compiler/rustc_interface/src/queries.rs')
0 files changed, 0 insertions, 0 deletions