rust/compiler/rustc_target/src
bors f383703e32 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
2023-06-07 22:02:24 +00:00
..
abi Auto merge of #112198 - compiler-errors:rollup-o2xe4of, r=compiler-errors 2023-06-02 07:57:21 +00:00
asm asm: loongarch64: Drop efiapi 2023-05-12 17:22:47 +08:00
spec Auto merge of #111698 - Amanieu:force-static-lib, r=petrochenkov 2023-06-07 22:02:24 +00:00
json.rs Improve generating Custom entry function 2022-11-11 01:04:39 +05:30
lib.rs linker: Report linker flavors incompatible with the current target 2023-05-29 19:58:11 +03:00
tests.rs Use serde_json for target spec json 2022-06-03 16:46:19 +00:00